Problem solve Get help with specific problems with your technologies, process and projects.

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:


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


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 last published in June 2004

Dig Deeper on Past Releases

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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.