|
February 2007 Technical Tip – Easytrieve: Redirecting report output When creating a report with Easytrieve, the default action is to include the report in SYSPRINT with the program listing and error messages. It is often desireable to redirect the report to a separate DD. This article will demonstrate how this is done. There are three steps in redirecting report output to a separate DD:
The following program demonstrates how this is done. The program reads a file of my kids from //MYKIDS (using instream data), and writes a report containing girls only to //MYGIRLS:
The report is written to //MYGIRLS and is shown here with the generated carriage control characters. (The NOADJUST option on the REPORT statement causes the report to be written left-justified rather than centered.)
We hope you will consider Caliber Data Training when you are in need of high quality IT training including Easytrieve. Go to the articles index. Written by Bill Qualls. Copyright © 2007 by Caliber Data Training 800.938.1222 |