Runtime Options

There are several runtime options that you may want to employ. The -w flag suppresses warning messages from the runtime system. In particular, it inhibits the warning message NONNUMERIC DATA IN NUMERIC ITEM. This message is printed whenever a numeric field is used in a numeric fashion and that field does not contain a valid number. The default action for ACUCOBOL-GT is to print the warning message and then treat the value as zero. RM/COBOL does not check for this case and proceeds to do some undefined action. Because it does not test for this condition, it shows up in programs surprisingly often. When the "-w" runtime flag is specified, ACUCOBOL-GT does not print a message and acts on the field with its current value. The results are not well defined but usually are the same as the same program run under RM/COBOL.

By default, ACUCOBOL-GT uses 1985 ANSI standard file status codes. These codes differ from those used by RM/COBOL in several respects. If your programs are written to the 1974 RM/COBOL standard, you should add the following line to the configuration file to cause ACUCOBOL-GT to use those file status codes:

Note: If you are converting programs from RM/COBOL-85, and use the default 1985 standard status codes, do not add this line to the configuration file.

RM/COBOL (but not RM/COBOL-85) also automatically closes all non-print files in a subprogram when that program exits. This is in conflict with the ANSI standard which states that a subprogram remains in the same state until explicitly canceled. ACUCOBOL-GT follows the ANSI standard. If your programs depend on this behavior, however, you can add the following line to the configuration file to cause ACUCOBOL-GT to act the same way that RM/COBOL does:


You will also need to edit the configuration file to describe which printers are attached to your system. You may also want to set the PATH entry to describe where your object-code files reside. These procedures are described in Compiler and Runtime.