Q

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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close