Control cards are processed as 80-byte card images. However, only card columns 1 through 72 are examined for parsing purposes. Card columns 73 through 80 are ignored. Comments are supported and begin with an '*' (asterisk). When the first non‑blank character of a statement is an '*' (asterisk), the remainder of that record is a comment statement. You can use comment statements at any place within a program, except within a continued statement. A multiple line comment requires an '*' (asterisk) as the first non‑blank character of each line statement.
Control card operands are not column‑dependent and can begin in any card column. Either a space, or a comma followed by a space, should be placed between the report macro specification and the first control card keyword. Either a space or a space followed by a comma should separate sequences of control card keywords and their operand values. The following example illustrates the general rules for control card data entry:
*‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ * This is a comment that extends over multiple cards * *‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ %REPORT_MACRO KEYWORD OPERAND1, KEYWORD2 OPERAND2
Control card continuation is supported over any number of control card images. Control card continuations should be placed following a keyword/operand sequence. To continue a control card, a plus sign (+) or a hyphen (‑) should be placed in any card column following the comma, up to column 72.
The last non‑blank character of a statement terminates the statement unless that character is a ‑ (hyphen) or a + (plus). The ‑ indicates that the statement continues at the start of the next statement area. The + indicates that the statement continues with the first non‑blank character in the next statement area. The difference between ‑ and + is important only when continuing words.
Example: Control Card Syntax
This example illustrates the general rules for continuing control card specifications:
*‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ * This is a comment that extends over multiple cards *‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ %REPORT_MACRO KEYWORD1 OPERAND1, + KEYWORD2 OPERAND2, + KEYWORD3 OPERAND3
|
Copyright © 2014 CA.
All rights reserved.
|
|