HP COBOL II/XL Quick Reference Guide (31500-90015)
1-: 1
Chapter 1 Preprocessor Commands and $CONTROL Options
Table 1-1. Preprocessor Commands
---------------------------------------------------------------------------------------------
| | |
| Command | Purpose |
| | |
---------------------------------------------------------------------------------------------
| | |
| $COMMENT | Writing comment lines. |
| | |
---------------------------------------------------------------------------------------------
| | |
| $DEFINE | Defining and using macros. |
| $PREPROCESSOR | |
| | |
---------------------------------------------------------------------------------------------
| | |
| $IF | Conditionally compiling. |
| $SET | |
| | |
---------------------------------------------------------------------------------------------
| | |
| $INCLUDE | File inserting, merging, and editing |
| $EDIT | operations. |
| | |
---------------------------------------------------------------------------------------------
| | |
| [REV BEG]$COPYRIGHT [REV END] | Affecting compiler output (code and |
| $PAGE | listing). |
| $TITLE[REV BEG] | |
| $VERSION [REV END] | |
| $CONTROL | |
| | |
---------------------------------------------------------------------------------------------
General Format
The preprocessor commands have the following format:
$
commandname
[
parameterlist
]
Parameters
commandname
one of the command names shown in the list above.
parameterlist
a list of parameters for a given preprocessor command.
The specific parameters (if any) allowed for a given
preprocessor command are listed later in this section
where the command is described. A list of parameters in
a command must be separated from the command by one or
more spaces, and each parameter specified must be
separated from any succeeding parameter by a comma
optionally followed or preceded by one or more spaces.
$COMMENT
The $COMMENT command identifies comment text.