ContentsIndexPreviousNext

Q.3 Preprocessor for HP e3000 COBOL

The ACUCOBOL-GT compiler includes a preprocessor that is written specifically for providing compatibility with HP e3000 COBOL programs. This preprocessor handles conditional compilation with $IF, $SET, $COMMENT, $PREPROCESSOR, and $INCLUDE directives, and macro calls with parameters.

When you specify the "-Cp" option, ACUCOBOL-GT, automatically invokes the preprocessor for HP e3000 COBOL.


Note: The $CONTROL directives are ignored by the ACUCOBOL-GT preprocessor for HP e3000 COBOL. The $CONTROL directives are handled by the compiler command arguments. See the "$CONTROL Directives" section below for details.

The compiler determines the source format automatically by examining the first character of the first non-blank line. If that character is blank or a digit, the file is assumed to be an ANSI file, otherwise it is assumed to be in terminal format. You can also specify the format of the source with the "-Sa" or "-St" compile options. See Book 1, section 2.1.5, "Source Options."

The ACUCOBOL-GT preprocessor for the HP e3000 COBOL currently supports the following directives. They are discussed in more detail below.

$COMMENT
$DEFINE
$IF
$INCLUDE
$PREPROCESSOR
$SET

More:

$COMMENT directive

$DEFINE directive

$PREPROCESSOR directive

$IF and $SET directives

$INCLUDE directive