skip to main content

Compiler and Runtime : Compiler : Compiler Options

Compiler Options
The -help option displays all available options:
Common Options
-c=config_file
Use the configuration file identified by config_file. See Configuration for the list of the configuration properties that are applicable to the Compiler and for details about how the configuration is built.
-conly=config_file
Use only the configuration file identified by config_file. See Configuration for the list of the configuration properties that are applicable to the Compiler.
-eo=DirName
Compatibility Options
WRITE ADVANCING Special-Name
numeric FILE STATUS
multiple FILE STATUS
Data Options
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
See USAGE clause for details about how numeric data items are affected by this option.
-dv=char
Initialize each otherwise undefined byte in working-storage to the specified value when a program is first loaded or canceled and then called. char is the decimal representation of the character. For example, to fill the working-storage memory area with 'A' use -dv=65. Use -dv=0 for low-values and -dv=32 for ASCII spaces.
External File Options
-efo=DirName
File Options
All RECORD SEQUENTIAL files have variable-length records. The Compiler assumes that the FD includes RECORD CONTAINS 1 TO n CHARACTERS clause, where n is the length of the largest record description in the FD. Explicit RECORD or VARYING clauses in the FD are ignored.
Java Options
-jo=Option...
Listing Options
Use this option along with -lf in order to output full listing to a '.list' file in ANSI format. The list file contains all the source code, all the copybooks are merged into it (unless the SUPPRESS clause is used in the COPY statement) and in most of the cases it can be compiled as it is a standard COBOL program.
If used along with -ld, only the source part is generated in ANSI format, the datamap is always in FREE format.
Note: The listing is generated before the syntax analysis and every dot out of quotes is considered as end of the statement, therefore, if you don’t enclose copybook names between quotes, you might obtain an uncompilable list file.
Note: The listing is generated before the syntax analysis and every dot out of quotes is considered as end of the statement, therefore, if you don’t enclose copybook names between quotes, you might obtain an uncompilable list file.
Note: The listing is generated before the syntax analysis and every dot out of quotes is considered as end of the statement, therefore, if you don’t enclose copybook names between quotes, you might obtain an uncompilable list file.
-lo=DirName
Memory Options
-m1
Output Options
-od=DirName
Perform Stack Options
Use -pt0 for compatibility with RM/COBOL, -pt1 for compatibility with the default behavior of Micro Focus COBOL and ACUCOBOL-GT, and -pt2 for compatibility with mainframe behavior of OS/VS COBOL, DOS/VS COBOL, VS COBOL II and COBOL/370.
For more information consult the documentation provided with the specific COBOL dialect
Keywords Options
-rc=word,customword...
-rm=newmeaning,word...
-rw=word...
Source Options
-ce=Ext1...
-exec=Macro
-exec=html enables the HTML compiler with the following limitations:
Force Fixed (aka ANSI) source format.
Forces Free source format.
Allows the mixing of source files and copybooks written in Fixed and Terminal formats. This is useful when you’re writing the main source code using the Fixed format and you need to insert some copybooks that are written in Terminal format, or vice versa.
The compiler looks at the character in the 7th column of the first not empty line. If this character is a valid indicator (*,$,/) or a blank, then the source file is assumed to be in Fixed (aka ANSI) format, otherwise it is assumed to be in Free format. If the first character of the first not empty line is a valid indicator, not including the case of "*>", then the source file is assumed to be in Terminal format.
1) If the file is not in Fixed (aka ANSI) format then the file is in Terminal format
-sns=Lines
-sp=Copypath...
Forces Terminal source format.
-stl=Length
Screen Options
Warning Options
Note: with this option the error #173 Reference modifier out of range is returned as a Warning instead of a Severe error.
Miscellaneous Options

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left