Home > AS/400 Tips > iSeries administrator tips > System i printing: Configuring an ASCII printer
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

System i printing: Configuring an ASCII printer


Chip Milosch
03.29.2007
Rating: -4.70- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


[TABLE]A very common question posted on various iSeries forums is some variation of: I have a XXXX ASCII printer on my network. How can I make this printer available to my iSeries users?

Although this question seems to cause a lot of anxiety among iSeries administrators, there really is no reason for the emotional trauma. Configuring most ASCII printers to work with both a normal PC network and the iSeries in perfect harmony is not really that difficult. The secret to making it all work smoothly is knowing what information you need to have and where to find it. I hope to provide a simple plan to guide you through the steps of ASCII printer configuration. Fortunately, IBM's Web site provides a wealth of information in very well structured tables that have the necessary configuration choices and parameters.

[TABLE]
[IMAGE]

To configure an ASCII printer on the iSeries you need to know some general information about the printer, beginning with the printer Make & model # & its IP address. If you are responsible for setting up the printers, then you presumably know the IP address. If you don't, you may have to print a network configuration page from the printer. In any case, once you know the IP address of the printer, verify that your iSeries can 'see' the printer by PINGing it from an iSeries command prompt:

PING RMTSYS('10.60.26.202')

Once you know the printer's IP address, you are almost ready to define the printer using the CRTDEVPRT (Create Printer Device) command. When using CRTDEVPRT to configure ASCII printers, we need to define three important parameters:

  • MFRTYPMDL (Manufacture Type & Model)
  • WSCST (Workstation Customization Table)
  • SYSDRVPGM (System Driver Program)
  • The starting place to find most of the info


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


    RELATED CONTENT
    iSeries administrator tips
    Translating Linux for IBM i admins: Using GUI to make it easy
    Translating Linux for IBM i admins: Working with jobs and networking
    OpenOffice: What to know before making the transition from Microsoft Office
    OpenOffice: An enterprise open source solution
    Database performance comparisons on IBM i
    Translating Linux for IBM i admins: User profile commands
    Modern System i reports using Client Access
    Tips for installing Lotus Domino server on a System i partition
    The iSeries Blog has a new home on IT Knowledge Exchange
    Virtualization for IBM i: Backups

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary


    rmation required is an IBM web page titled Support for Various ASCII Printers. From this page, you can follow links to pages for printers from specific manufacturers as well as get information necessary for setting up Host Print Transform for your printer.

    MFRTYPMDL

    This defines the general type of printer. To locate the proper MFRTYPMDL value for your printer, follow the appropriate link from the URL above for your printer manufacturer. Search this page for the model number of the printer you are configuring, and then locate the appropriate MFRTYPMDL value. For example, if configuring an HP4350 printer, the MFRTYPMDL value would be *HP4000.

    WSCST Setting

    The WSCST value in the CRTDEVPRT command defines the workstation customization object that PSF/400 is going to use to translate between IPDS printing and the ASCII (usually PCL) printing on the physical printer. This functionality is generally referred to as Host Print Transform. PSF/400 is the printing subsystem on the iSeries that actually handles the communications and work producing printer output. The main reference URL given above includes a link to IBM's Version 5 Printer Model Settings for Host Print Transform (HPT) document.

    Locate the MFRTYPMDL value for the ASCII printer. There will be a column defining the default WSCST object to use. Again, using an HP4350 as an example, the MFRTYPMDL value of *HP4000 points to a WSCST value of QWPHPLSRE.

    In some cases, the behavior provided by the IBM-supplied WSCST won't be quite adequate. If that is the case, then you will have to delve into the guts of a WSCST source files. I won't cover that joyous task here, but will at some future time.

    SYSDRVPGM

    The system driver program value says what internal program is used to communicate with the physical printer. In almost all cases, this will be *HPPJLDRV. Again, refer to the documentation on IBM's website to be sure you have chosen the correct value.

    Port Number

    The last piece of information you have to gather is the correct port number to use with the TCP/IP address for your ASCII printer. Once again, IBM provides recommended value on a web page.Recommended PJL Port Number Values for *LAN 3812 PJL Device Descriptions.

    Creating the Printer Device

    In almost every case, the ASCII print device you create will be configured to emulate an IBM 3812 laser printer, so that is the model that will be used in this example of creating the device 'MYASCII'.

    Now we are ready to execute the CRTDEVPRT command. This command 'walks' you through the necessary parameters by adding command parameters as it determines which options are available to you based on previous choices. Type in CRTDEVPRT, press f4 and fill it the first four available parameters as follows:

    Press enter, and then fill in the next available parameter, LAN attachment. Since we know we are connecting our ASCII device using TCP/IP, we choose *IP for this choice.

    Now we can supply the port number that we looked up earlier from the IBM Web tables. The only other parameter that requires some action on our part is the Font Identifier. 11 is generally a good choice here:

    Press F10 after this panel, so we can fill in additional options. Press Page Down, and verify that Host Print Transform is set to *YES:

    Type choices, press Enter.

    Press ENTER, and the panel expands allowing use to specify the rest of our configuration information such as MFRTYPMDL:

    Press Page Down:

    Type choices, press Enter.

    Here we fill in the IP address of our printer and specify the System driver program needed. As previously mentioned, this value is *HPPJLDRV in the majority of cases, since most ASCII printers provide basic emulation of HP Laser printers.

    Page down again, so you can provide a reasonable description of your new ASCII printer. The Publishing information fields are not necessary, but you can complete them if you wish to provide more internal documentation of the printer capabilities:

    Pressing page down one last time shows a page where you can specify a Workstation customizing object (WSCST). We won't need one for this example. A future article will discuss some of the details of how and why you might want (or need) to create your own WSCST object. For now, just press enter on this last panel:

    At this point you will have created your ASCII print device on the iSeries, as an emulated 3812 printer. Initially the device will be varied off, so you will have to type ...

    WRKCFGSTS CFGTYPE(*DEV) CFGD(MYASCII)

    Use option 1 to vary the device on then you can start the print writer and try printing to your new device.

    ---------------------------

    ABOUT THE AUTHOR: Chip Milosch is a consultant at Griffin Consulting. Chip has been in IT for over 25 years, with more than 15 years on the AS/400 and iSeries platforms. In addition, Chip trains clients on how to increase programmer productivity by using new tools. He has spoken several times at DevCon on print-related topics.

    Rate this Tip
    To rate tips, you must be a member of Search400.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    iSeries Security - Security Tools, Physical Security and System Security
    HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts