COMMENT statement
Use the COMMENT statement to print comments in the output data.
The two types of COMMENT statements, conditional and unconditional are described. The following table shows the format of the COMMENT statement.
Column | Function | Code | Description |
---|---|---|---|
1 | Identifies control statement | T | Conditional comment statement. |
U | Unconditional comment statement. | ||
2-72 | Comment data | Any relevant comment. | |
73-80 | Sequence indication | nnnnnnnn | For SYSIN2 statement override. |
Conditional COMMENT statement
You can use up to five conditional COMMENT statements per call; no continuation mark is required in column 72. Code the statements in the DFSDDLT0 stream before the call they are to document. Conditional COMMENTS are read and held until a CALL is read and executed. (If a COMPARE statement follows the CALL, conditional COMMENTS are held until after the comparison is completed.) You control whether the conditional comments are printed with column 3 of the STATUS statement. DFSDDLT0 prints the statements according to the STATUS statement in the following order: conditional COMMENTS, the CALL, and the COMPARE(s). The time and date are also printed with each conditional COMMENT statement.
Unconditional COMMENT statement
You can use any number of unconditional COMMENT statements. Code them in the DFSDDLT0 stream before the call they are to document. The time and date are printed with each unconditional COMMENT statement. The previous table lists the column number, function, code, and description
Example of COMMENT statement
T/U Comment Calls: The following example shows the T and U comment calls.
//BATCH.SYSIN DD * 10000700
|---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----<
O SNAP= ,ABORT=0 10000800
S 1 1 1 1 1 10001000
L GU SEGB (KEYA =A400) 10001100
T THIS COMMENT IS A CONDITIONAL COMMENT FOR THE FIRST GN 10001300
L GN 10001400
U THIS COMMENT IS AN UNCONDITIONAL COMMENT FOR THE SECOND GN 10001500
L 0020 GN 10001600
/*