$CONTROL Directive

The $CONTROL directive in HP COBOL provides a method for specifying compilation and list options. The $CONTROL directive is not supported by ACUCOBOL-GT and is not included in the compiled object or listing file.

ACUCOBOL-GT uses command line arguments to perform the same functions that $CONTROL directives perform for HP COBOL. The following table correlates HP COBOL $CONTROL options to equivalent ACUCOBOL-GT options. The string <default> indicates that the option is enabled by default in ACUCOBOL-GT. To make it easier to specify multiple compiler options, you can use the CBLFLAGS environment variable. For information on the use of CBLFLAGS, see CBLFLAGS Environment Variable.

HP COBOL

$CONTROL option

ACUCOBOLGT

compiler option

ANSISORT <none>
ANSISUB <default>
BOUNDS -Za
CHECKSYNTAX -Lf
CODE <default>
NOCODE <none>
CROSSREF -LC
NOCROSSREF <default>
DEBUG -Gd
DIFF74 <none>
DIFF74=OBS <none>
DIFF74=INC <none>
DYNAMIC -Zi
ERRORS=number <none>
LINES=number -Ll
LIST -Lf
NOLIST <default>
LOCKING <none>
LOCOFF <default>
LOCON -Lf
MAP -Ls
NOMAP <default>
MIXED <none>
NOMIXED <default>
QUOTE = " ' <none>
SOURCE -Lo
NOSOURCE <default>
STAT74 use the runtime configuration variable:

FILE_STATUS_CODES = 74

STDWARN <none>
NOSTDWARN <none>
SUBPROGRAM <none>
SYMDEBUG -Gy
SYNC16 -D12
SYNC32 -D14
USLINIT -Di
VERBS -Lc
NOVERBS <default>
WARN -a
NOWARN -w