-enn
The -e option specifies the maximum number of errors that the compiler will issue, before giving up. The default is unlimited.
-I
The -I option specifies a directory where the compiler must look for COPY members. This option can be repeated. Directories will be searched in the order given.
-D
The -D option specifies the directory where the compiler will store the intermediate C++ code.
-L
The -L option specifies that source lines must be listed while they are parsed.
-M
The -M option specifies that a main program is compiled. The compiler will generate a 'main' function as part of the generated code.
If the -M or -RM option is not specified, then the compiler will generate a callable sub-program.
-N
The -N option specifies that no code should be generated. The source file is parsed, and error messages are issued.
-R
The -R option specifies that a recursive sub-program should be generated. The WORKING-STORAGE for the sub-program will not be allocated in global storage, but on the stack.
-RM
The -R option specifies that a recursive main program should be generated. The WORKING-STORAGE for the sub-program will not be allocated in global storage, but on the stack.
-S
The -S option specifies that some statistics should be displayed at the end of the compilation.
-Vi
The -V option enables the 'verbosity' of the compiler. The higher the number i, the more verbose the compiler will be.
-W
The -W option enables warnings about any deprecated features that the COBOL program might contain.
-x
The -x option specifies the extension that is used for COPY files. The compiler will first search for a COPY member with the given extension and, if it is not found, without the extension.
-p
The -p option specifies the directory where plug-ins can be found. This option must always be specified with other options that activate a plugin.
-g
The -g option specifies that debugging code should be generated. The compiler emits code that is not optimized, and that allows to step thru code and to step into or over PERFORMs.
The -g option must be used together with the -p option.
See also Debugging.
-X
The -X option specifies that a cross reference file should be generated. The cross-reference file (with the extension .xrf) will contain an alphabetic list of all data-items, with the location in the source file where they are defined and where they are used.
The -X option must be used together with the -p option.
-3
The -3 option specifies that HP-3000 Cobol code will be compiled. The compiler will enable a set of compatibility features that ease migration from HP-3000 Cobol code.
The -3 option disables the effects of the -M and -R options. Sub-programs must have a $CONTROL SUBPROGRAM or $CONTROL DYNAMIC directive.
The -3 option must be used together with the -p option.
See also HP-3000 compatibilty.