ContentsIndexPreviousNext

Changes Affecting Version 4.2

The following paragraphs describe changes that can affect programs originally written with ACUCOBOL-GT Version 4.2.

Compiler Changes

Version 4.3 contains two compilation switches for compatibility with Version 4.2:

-C42 Causes the compiler to generate code according to the rules used by Version 4.2.

-Z42 Creates object code that can be run with a Version 4.2 runtime.

The following paragraphs describe changes that can affect programs originally written with ACUCOBOL-GT Version 4.2.

Runtime Changes

The following paragraphs describe changes that can affect programs originally written with ACUCOBOL-GT Version 4.2.


Note: When programming entry fields with Version 4.3, keep in mind that starting with ACUCOBOL-GT 5.0 release, the program will no longer automatically assign the "MULTILINE" style to an entry field with LINES value of "2" or greater. Although Version 5.0 will correctly handle cases compiled with 4.x versions, in order to do so you will need to specify an appropriate source-compatibility flag (such as "-Z43"). This means that you are not yet required to explicitly set the "MULTILINE" style, but doing so now will save you from having to use a compatibility flag in the future.
Calling COBOL from other languages

Programs that call the "cobol" routine must be sure to include "sub.h" (included with ACUCOBOL-GT in the "lib" directory). This includes a declaration of the "cobol" routine for all platforms. This ensures that you use the correct calling convention when calling the "cobol" routine. If you have established routines that call "cobol", these must be recompiled in order to use the new calling convention.