|
|||||||
|
|
![]() |
|
|
|
|
||
|
Printing Qshell Output, Part 2 Hey, Ted: It's not necessary to wait for OS/400 V5R2 to directly route STDOUT output to QSYSPRT, as you implied in "Printing Qshell Output." I use the Override with Database File (OVRDBF) command to override file STDOUT to a printer file. This works for me on V5R1. The following examples route STDOUT to QSYSPRT. The first example generates a listing of MQSeries object permissions for a specified MQ Manager.
OVRDBF FILE(STDOUT) TOFILE(QSYSPRT)
QSH CMD('/qsys.lib/qmqm.lib/amqoamd.pgm -mMy_Qmgr -s')
DLTOVR STDOUT
The second example uses the zLib shareware version for AS/400 to unzip a file.
OVRDBF FILE(STDOUT) TOFILE(QSYSPRT)
CALL ZLIB/MINIUNZ PARM('-o' 'my_file.zip')
DLTOVR STDOUT
--Michael Thanks for the tip, Michael. The Override with Printer File (OVRPRTF) command works, too. --Ted
|
Editors
Contact the Editors |
| Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved. |