Tip

Know where your spooled files are going

Does this scenario sound familiar? A user is printing reports but they come out of the wrong printer. Where do you change the printout to print on the right printer? Is it in the program? In the user profile? In the printer file? There are many places where a spooled file can be directed to a printer: printer file, job description, user profile, device description, system value, and then there are those nice printer overrides that can be very convenient, but could just as easily add to the confusion.

Welcome to the wonderful world of spooling! If the final destination of a report has to be changed, the first thing you have to know is the name of the report (the 'FILE' name how it appears in your spooled files) this is usually the name of the printer file used to create the report.

You could specify the out queue right there, but this would mean that this report would always be sent to that queue -- for every user. This could be just fine for some spooled files (i.e. invoices to be send out can be printed on the invoice printer that is filled with special paper.)

You can also use job descriptions to send the spooled files to the correct out queue (i.e. all prints requested in the test environment could be send to a test queue that has no printer attached. Most reports would have to be printed on different printers based on the user who requested the printout (i.e. department printers.) Another option is to print based on the workstation (i.e. prints requested by any user working on the computer at the loading dock.)

We have four areas that we steer the spooled file to: PRTF, JOBD, USRPRF, and DEVD. If that is not enough for you, these four areas all have two values that can control your spooling: out queue name and printer device. Sounds complicated but it's not really that bad. Look at the graphical flow of the spooled file here.

Simply follow the arrows and you will end up on some out queue or printer. The red values are the defaults when creating the various objects.

Note: If all objects have been created with default values for the out queue and the printer, you will end up in the printer specified in the system value QPRTDEV.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: Tips, tutorials and more.

Visit the ITKnowledge Exchange and get answers to your systems management questions fast.

Read this Search400.com Featured Topic: Take control of your iSeries.

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.


This was first published in February 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

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.