Printing from Qshell

While Qshell is a valuable tool in the iSeries professional's toolbox, some features it has are hard to discover. For example, instructions on how to print Qshell output to an iSeries printer are hidden in an obscure page in the InfoCenter. To send the output of a Qshell command to an output queue, use the Rfile command. Entered by itself, the following command "echo Hello iSeries" will echo to the screen the words "Hello iSeries". We will redirect that to a printer file via Rfile echo Hello iSeries | Rfile -wbQ -c "ovrprtf file(qprint) outq(outqname) splfname(qshprt) hold(*yes)" qprint

The InfoCenter has an example on how to send ASCII files and Qshell output to remote printers.

This was first published in March 2006

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.