Newsletters Subscriptions Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 30 -- April 30, 2003

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


Sponsored By
DAMON TECHNOLOGIES

The Next Evolution of RPG is Here!

RSP (RPG Server Pages) is the best way to develop Web applications with RPG.

  • Developers use their existing RPG skills.
  • No Java Server needed.
  • More robust than CGI with greater flexibility.
  • Full debug capabilities.
  • Session Handling with a built in garbage collector.
  • The most cost effective solution for the iSeries.

With RSP, Web content is developed with the Ease, Speed, and Reliability of RPG.

In today's fast paced business world, there is not enough time or resources to convert RPG developers into Java developers. The logical step to bring your business critical applications to the Web is with RSP. RSP gives the developer the tools necessary to create fast and reliable Web applications.

Download your FREE copy of RSP today!

www.damontech.com


THIS ISSUE
SPONSORED BY:

WorksRight Software
Damon Technologies


BACK ISSUES

TABLE OF
CONTENTS

Time for a Common Table Expression, Part 2

Printing Qshell Output, Part 2

Reader Feedback and Insights: There's No Java Conspiracy


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris
Shannon O'Donnell

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.