fhg
Volume 11, Number 6 -- February 16, 2011

OUTQ vs. PRTDEV

Published: 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


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
E-mail: software@worksright.com
Web site: www.worksright.com


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Edwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

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


 
The Four Hundred
More Software Pricing Carrots for IBM i Shops

iSam Blue Predicts Falling HA Costs

When IT Attacks: Disasters of the Technology Kind

Mad Dog 21/21: The Daily Nothing

IBM Tweaks Power Systems Deals, Enables Encryption and Web Development

Four Hundred Stuff
TPS Delivers IBM i Version of MFT Solution

Hubspan Automates B2B from the Cloud

Linoma Adds Enterprise Features to MFT Offering

App Security Vendor Addresses XSRF Attacks

TrendMicro Claims Full Coverage of 64-Bit Domino with ScanMail

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
September 25, 2010: Volume 12, Number 39

September 18, 2010: Volume 12, Number 38

September 11, 2010: Volume 12, Number 37

September 4, 2010: Volume 12, Number 36

August 28, 2010: Volume 12, Number 35

August 21, 2010: Volume 12, Number 34

TPM at The Register
HP buys Vertica for data analytics

AMD cranks up Opteron clocks

Dell crams two four-way Opterons into cloudy server

Lenovo, NEC eye server tie-up

Rackspace nears $1bn run rate

Teradata says Ellison can't keep it down

Cisco beats diminished sales targets in Q2

Oracle and Fujitsu hook up on Sparc servers

More heads roll at AMD

Novell and HP wave SUSE x64 cluster deal

Samsung and IBM in patent pact

Argonne taps IBM for 10 petaflops super

THIS ISSUE SPONSORED BY:

SEQUEL Software
WorksRight Software
System i Developer


Printer Friendly Version


TABLE OF CONTENTS
Commands: Underused and Unappreciated

OUTQ vs. PRTDEV

Admin Alert: Six Techniques to Prevent Power i Upgrades from Slowing Down

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2011 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement