This statement is used to write comments to the output medium defined by the statement //MODIFY-LOGGING-PARAMETERS TEXT-OUTPUT=..., unlike the WRITE-TEXT statement, which always directs output to SYSOUT or SYSLST.
WRITE-COMMENT |
COMMENT = ’ ’ / <c-string 1..1024 with-low> |
COMMENT = ' ' / <c-string 1..1024 with-low>
Comment text. If nothing is specified, a blank is used as the default value, i.e. a blank line is generated.
Statement return code
(SC2) | SC1 | Maincode | Meaning |
| 0 | CMD0001 | No error |
Example
The text enclosed in apostrophes, which may also extend over multiple lines, is interpreted as a comment.
//write-comment 'This is the last LMS statement to be described.//
A new chapter begins on the next page.'