Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Data z/OS DFSORT: Getting Started SC23-6880-00 |
|
The data for your report consists of the OUTFIL output records. You can use the INCLUDE, OMIT, INREC, SUM and OUTREC statements, and the OUTFIL parameters STARTREC, SAMPLE, ENDREC, INCLUDE, OMIT, ACCEPT, SAVE, PARSE, BUILD, OUTREC, OVERLAY, FINDREP, and IFTHEN to determine which data records appear in your report and what they look like. The following statements show the simplest possible type of OUTFIL
report you can produce:
LINES=10 indicates you want a report with 10 lines per page. These statements might produce the following two page result for RPT1:
Note: In some of the examples later in
this section, small LINES values are used to illustrate a point.
However, the default for LINES is 60 and you would generally want
to use either that value or one close to it.
For reports, OUTFIL places an ANSI carriage control character in the first byte of each output line to tell a printer what action to take for that line. The '1' for Data line 01 and Data line 11 tells the printer that these lines each start on a new page. This is the way DFSORT translates LINES=10 into 10 lines per page for the printer. Other ANSI carriage control characters that DFSORT uses for OUTFIL reports are: blank for single space (no blank lines before the output line), '0' for double space (one blank line before the output line), and '-' for triple space (two blank lines before the output line). When you view a report on your display, the ANSI carriage control is not meaningful, and is usually not displayed even though it's actually in the record. If you don't want ANSI carriage control characters in your output records, you can use OUTFIL's REMOVECC parameter to remove them (more on this later). In general, you will want to use the PARSE, BUILD, OUTREC, OVERLAY, FINDREP, or IFTHEN parameters to reformat the data
records for your report. Suppose you want to print a report from
the SORT.BRANCH data set showing each branch's revenue and profit
or loss, with 9 lines per page. You can use the following statements
to show the branches in sorted order, along with their revenue and
profit fields in readable form:
The two page result produced for RPT2 is the following:
|
Copyright IBM Corporation 1990, 2014
|