Previous Topic: EJECT StatementNext Topic: Converting Between Numeric and Alphanumeric


Comment

A comment is a character string that serves as documentation in a program. Comments are not executable. Any line in a PDL program can contain a comment. A line that begins with : or ‑‑ is treated as a comment.

:      text of comment
--     text of comment

: (colon) All characters to the right are treated as a comment. You cannot use the colon for comments in embedded SQL.

-- (double hyphens) All characters to the right are treated as a comment.

Because the comment ends at the end of the line, no special character is required to terminate the comment.

Example

: this is regarded as a comment.
SET A = B + C  :  this is regarded as a comment,
SET D = A + 1  ‑‑ and this, too, but not the SETs