Ask the Expert

Tracking shipping labels

Our company utilizes several printers to print shipping labels. We would like to track which printer has printed the shipping label by printing the printer ID/output queue on the shipping label. The shipping label print program calls a utility to override the printer file based on user ID/workstation. Is there an API or easy method to retrieve the printer file's output queue after the override has occurred? I?m using RPG on OS/400.
I think I understand what you are looking for… you want to know the name of the original output queue defined in a particular printer file.

Before the print program is invoked, use the following command to collect the *SPOOL attributes of your printer file into a temporary work file:

DSPFD FILE(Printer_File) TYPE(*SPOOL) OUTPUT(*OUTFILE) OUTFILE(QTEMP/PrtfDta)

The *OUTQ name can then be retrieved as &SPOTQL/&SPOUTQ from the QTEMP/PrtfDta file.

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

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade


This was first published in June 2004

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: