• 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
    ARCAD Software

    DevSecOps & Peer Review – The Power of Automation

    In today’s fast-paced development environments, security can no longer be an afterthought. This session will explore how DevSecOps brings security into every phase of the DevOps lifecycle—early, consistently, and effectively.

    In this session, you’ll discover:

    • What DevSecOps is and why it matters?
    • Learn how to formalize your security concerns into a repeatable process
    • Discover the power of automation through pull requests, approval workflows, segregation of duties, peer review, and more—ensuring your data and production environments are protected without slowing down delivery.

    Whether you’re just getting started or looking to enhance your practices, this session will provide actionable insights to strengthen your security posture through automation and team alignment to bring consistency to the process.

    Watch Now!

    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

  • Power Systems Grows Nicely In Q3, Looks To Grow For All 2025, Too
  • Beta Of MCP Server Opens Up IBM i For Agentic AI
  • Sundry IBM i And Power Stack Announcements For Your Consideration
  • Please Take The IBM i Marketplace Survey
  • IBM i PTF Guide, Volume 27, Number 43
  • IBM Pulls The Curtain Back A Smidge On Project Bob
  • IBM Just Killed Merlin. Here’s Why
  • Guru: Playing Sounds From An RPG Program
  • A Bit More Insight Into IBM’s “Spyre” AI Accelerator For Power
  • IBM i PTF Guide, Volume 27, Number 42

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