Comments

You can include a comment:
  • On a line by itself
  • Before, in the middle of, or after a CLIST statement or TSO/E command.
You define a comment by coding a slash-asterisk (comment delimiter) followed by the descriptive text. If you include the comment before or in the middle of a CLIST statement or TSO/E command, you must end the comment with a closing comment delimiter (asterisk-slash). The following example shows a comment included before a CLIST statement:
/*get return code */ SET RC = &LASTCC
If you include a comment after a CLIST statement or TSO/E command, or on a line by itself, the closing comment delimiter is not needed, as shown in the following example:
alloc file(in) da(accounts.data) shr /* Input data set
If a comment appears after a CLIST statement or TSO/E command that continues on the following line, the comment must end with a closing comment delimiter and the continuation character must appear after the comment delimiter, as shown in the following example:
IF &LASTCC ¬= 0 THEN /* error occurred */ + 
 DO …

CLISTs can begin with a comment, but the first line of a CLIST must not be a comment containing the acronym REXX; if the first line contains "REXX" in any position, the EXEC command attempts to process the CLIST as a REXX exec. Note that comments can be in both uppercase and lowercase letters. Comments are unaffected by CLIST processing.