The following list consists of CA Earl command statements. These statements are exclusive to the CA Earl program language. Use them only in the context intended by CA Earl. This list can help you understand the sample reports in this chapter. For a more complete list, see the CA Earl Reference Guide.
A data manipulation statement, also called a processing statement. Invokes a user‑supplied routine. CALL is used without a suffix to determine operations performed on input data before output selection or with the suffix (D) at detail print time or with suffix (T) at total time.
A report specification statement. Specifies data sequence and automatic subtotal control‑breaks.
A library retrieval statement. Retrieves CA Earl source modules from the CA Earl library.
A data manipulation statement like CALL. Translates a set of specified values for a given field.
A declaration statement. Defines file data fields or working storage fields.
A termination statement. Signifies the end of the CA Earl source statements.
A logic flow statement. Signifies the end of a group of statements covered by an IF statement.
A logic flow statement. Signifies the end of a group of statements covered by a PROC statement.
A logic flow statement. Returns control from a procedure to the statement following the PERFORM statement that invoked the procedure without executing the following statements in the procedure.
A declaration statement. Identifies and describes input and output files.
A file handling statement. Reads a record from and input file or database.
A logic flow statement. Executes one or more data manipulation, file handling, or logic flow statements conditionally.
A comment statement.
A function that overrides default compile and execute functions.
A report specification statement. Determines the format and contents of a report. You must supply to CA Earl in the above sequence.
A report specification statement. Provides the heading lines for a report.
A report specification statement. Selects the data records to include in a report.
The following is a brief explanation of the categories that are presented in this chapter. Not all of these categories appear in each report input. These categories are presented here for a brief explanation of their content.
Specifies comment lines. These lines are ignored during processing.
Specifies run options for processing. These options can include:
Defines the file exit name.
Defines the names, positions, field types, default titles, and other criteria for the fields CA Earl uses for processing reports. COPY statements imbed copybook files containing field descriptions used in the various reports. The "CA‑ACF2 File Layouts" appendix describes these copybooks. You can also define work fields for customizing reports here.
Defines the files to read for processing.
Defines special processing of data. The DECODE statements translate values, such as numeric reason codes, into more useful data, such as text.
Selects the title, column headers, and records to print in the reports. You can use the REPORT and SELECT statements, described in the previous section, to add a line below the report title on each page. The EXCLUDE parameter of the REPORT statement suppresses the default column headers. This lets you define your own headers in the PRINT statement (described in the following).
Formats the records for printing. This section uses the CA Earl CONTROL and PRINT statements to sort and format records for printing.
The CONTROL statement sorts the records according the values of the fields specified in the statement. The following parameters are also used in this statement:
The PRINT statement prints the headers listed. If you did not specify column placements, CA Earl automatically spaces the headers across the page based on the width of the report, specified in the PRINTER= option (see above). Parameters used can include:
Contains statements you can precede by NOTE. To use the statements, remove NOTE.
|
Copyright © 2007 CA Technologies.
All rights reserved.
|
|