The SORT statement is required. It allows the input accounting data to be sorted on up to five different fields. Each field or sort level is defined by the format pppllosd.
where:
is a three digit number specifying the sort field's starting position. Refer to the Basic Accounting Table.
is a two digit number between 01 and 32 defining the length of the sort field in the Basic Accounting Table.
indicates the sort order:
ascending
descending
is the summary print option that tells CA JARS whether or not you want a summary line printed for this level and is defined as follows:
no summary line is printed at this level.
single, double, or triple spacing before printing the summary line.
eject to a new page after printing summary.
eject to a new page and reset page number to 1 after printing. (If either e or p is specified for the first [major] summary level, grand totals print on a page by themselves.)
specifies whether a descriptive header appears at this level.
The creation of any user sort control field may be omitted. If no sort control field is specified, the accounting data is arranged in the following default order:
The maximum length for displaying "control field" (DEID=01) is eight (8) characters even though the sort control field may be greater than eight characters. Sort field definitions of less than eight characters are padded with trailing blanks. In addition to a summary line at each of the five levels, CA JARS automatically produces a final totals line at the conclusion of a report.
Print record flags allow you to specify which type of detail record are printed: job, step, forms, or RJE. A 1 indicates print. A blank specifies that this type record should not be printed.
For a detailed description, see the section Special Forms Utilization by Month in the "Using the Sample Reports" chapter.
The required records indicator specifies the type of records needed for a given report when no detail records are to be printed. For example, if you want a report to determine the degree of utilization of the various compilers at the summary level, sort on the program name of each job step record. The presence of job records is detrimental as well as unnecessary to this report. In this example, to prevent the use of job records, and to specify that only step records are to be sorted for this report, an S is coded in the required records indicator.
The sorting and/or printing of forms records (SYSOUT data) is treated differently than for other types of records. When the forms detail flag (position 52) is set to 1 or the required records indicator is set to F, account records are constructed dynamically with forms-related data placed in the fields described in the Basic Accounting Table. See the Basic Accounting Table later in this chapter.
Each SORT statement must have a set code.
The following example illustrates a typical SORT statement:
position 1 2 3 4 6 7 8
1........0.........0.........0.........0.. 0.........0 ...0
First Second 1
Sort Level Sort Level
| |
- -
----------------
ASORT 04902AE113101A21
Report A is sorted on two levels. The more general level will be job class (begins at position 49 in the Basic Accounting Table), a two-character field, sorted in ascending order. Eject to new page after printing summary lines, and include descriptive headers.
The second sort level is job priority (position 131 in the Basic Accounting Table), a two digit field sorted in ascending order. Skip two lines before printing summary lines, and include descriptive headers.
The CAIJS DDNAME suffix (1 in position 64) tells CA JARS to use different print file DD statements for each report. When this position is nonblank, the character is appended to CAIJS and used as the DDNAME for the print file for this report. For example, CAIJS1 when the suffix character is a 1.
| Copyright © 2012 CA. All rights reserved. |
|