• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • OUTQ vs. PRTDEV

    February 16, 2011 Hey, Ted

    Several CL commands–Create User Profile (CRTUSRPRF) is a good example–have two parameters that control the destination of printed output. Where is the need for both print device and output queue? Can you explain the role of these parameters in determining the destination of output?

    -Tim

    I know of no need to use both print device and output queue (“outq”) parameters. I have always managed fine with outq’s only. The System/38, one of the predecessors of the AS/400, used outq’s exclusively. I understand that IBM added the print device option to support software that had been developed for the AS/400’s other predecessor, the System/36. IBM required that the AS/400 be able to run software developed for both S/36 and S/38, therefore print device was added as an option to support the S/36 printer architecture.

    Nowadays the print device only comes into play in only two instances of which I am aware: when a printer file is not spooling; and when the outq assignment resolves to *DEV.

    As you know, there are several places to specify output queue and print device.

    • User profiles
    • Job descriptions
    • Workstation device descriptions
    • Printer files
    • The Submit Job (SBMJOB) command
    • The Override with Printer File (OVRPRTF) command

    A lot goes into the routing of reports (my inaccurate but easy-to-use collective term for printed output). Of course, overrides trump everything. Aside from overrides, here is an overview of how the system determines where to send the output.

    When a job begins, the system sets the outq and print device assignments for the job. These are the values that are used when a parameter has the value *JOB. The system resolves the output queue parameter first, starting with the job description, then examining the user profile, and finally the workstation device description, as needed, until it finds an output queue name or the special value *DEV. Then it goes through the same process to obtain a value for the print device.

    At this point, the job has outq and print device assignments. You may use the Change Job (CHGJOB) command to change these job attributes.

    When a printer file is opened, the system goes through a similar process, this time using the printer file attributes and job attributes, to determine an output queue name. Printer file attributes trump job attributes.

    To sum it up:

    • Printer file description trumps job description
    • Job description trumps user profile
    • User profile trumps workstation device description
    • Overrides trump everything

    If you attempt to send print to an outq that does not exist, the system issues message CPD3322 and sends the report to outq QPRINT.

    I encourage you to visit the IBM i Information Center here for more details. You will find a good explanation of the routing process, a dozen examples, and a very short self-test.

    –Ted

    RELATED STORY

    Another Alternate Way to Print PC5250 Green Screens



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Four Hundred Monitor Calendar:  Latest info on national conferences, local events, & Webinars
    looksoftware:  Integrate IBM i apps with web services. FREE Webcast. March 9
    System i Developer:  Upgrade your skills at RPG & DB2 Summit in Orlando, March 22-24

    IT Jungle Store Top Book Picks

    BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The iSeries Pocket Database Guide: List Price, $59
    The iSeries Pocket SQL Guide: List Price, $59
    The iSeries Pocket WebFacing Primer: List Price, $39
    Migrating to WebSphere Express for iSeries: List Price, $49
    Getting Started with WebSphere Express for iSeries: List Price, $49
    The All-Everything Operating System: List Price, $35
    The Best Joomla! Tutorial Ever!: List Price, $19.95

    FIS Sells Missouri Bank and Trust on IBM i Solution New Power Systems VP Talks IBM i Strategy, Roadmaps

    Leave a Reply Cancel reply

Volume 11, Number 6 -- February 16, 2011
THIS ISSUE SPONSORED BY:

SEQUEL Software
WorksRight Software
System i Developer

Table of Contents

  • Commands: Underused and Unappreciated
  • OUTQ vs. PRTDEV
  • Admin Alert: Six Techniques to Prevent Power i Upgrades from Slowing Down

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • IBM Unveils Manzan, A New Open Source Event Monitor For IBM i
  • Say Goodbye To Downtime: Update Your Database Without Taking Your Business Offline
  • i-Rays Brings Observability To IBM i Performance Problems
  • Another Non-TR “Technology Refresh” Happens With IBM i TR6
  • IBM i PTF Guide, Volume 27, Number 18
  • Will The Turbulent Economy Downdraft IBM Systems Or Lift It?
  • How IBM Improved The Database With IBM i 7.6
  • Rocket Celebrates 35th Anniversary As Private Equity Owner Ponders Sale
  • 50 Acres And A Humanoid Robot With An AI Avatar
  • IBM i PTF Guide, Volume 27, Number 17

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle