ContentsIndexPreviousNext

2.12.1.3 Compiler Options Forwarded to Preprocessors

The following compiler options are automatically forwarded to each preprocessor, including the AcuSQL pre-compiler:

-Sa indicates that the input file is in ANSI format

-Sd directs the preprocessor to include debugging lines

-Si pattern directs the preprocessor to include source lines according to a pattern in the Identification Area of the source code. The next separate argument is the pattern to match

-St indicates that the input file is in terminal format COBOL

-Sx pattern directs the preprocessor to exclude source lines according to a pattern in the Identification Area of the source code. The next separate argument is the pattern to match

-e file directs the preprocessor to write error messages to specified file (if not specified, error messages are directed to standard error output)


Note: Where some options are mutually exclusive ("-Sa" and "-St"), the compiler command line will include at most one of those options. That one will be forwarded to the preprocessor.

Every preprocessor (written to the standards of the ACUCOBOL-GT General Preprocessor Interface) honors the "-e" option. Every preprocessor accepts the other options, although it may not make use of them.


Note: A preprocessor honors an option if it does what the option requires. A preprocessor accepts an option if it tolerates its presence on its command line but does not necessarily honor it. An option that is not honored or accepted causes a preprocessor to generate an error message.

Refer to section 2.1 for a description of all compiler options.