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
Dig Deeper on Past Releases
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ...continue reading
The only option to correct damage preventing file journaling is to use the RCLSTG command.continue reading
Find out if log files can be omitted during a save without causing problems in a full restore.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.