Defect Number: 185022
Product: ACUCOBOL-GT
Module: Runtime, Compiler
Machines Affected: All
Known Versions Affected: 10.4.1 and later
When the program makes a call to SYSTEM to run a script, certain checks are made to ensure the call is valid. The changes that enabled C$DARG (ECN-4712) for RM mode includes incrementing the number of parameters in the compiler, and then decrementing them in the runtime when the CALL_GIVING_PARAM flag is detected. However, in object versions earlier than 7.1, this flag cannot be passed to the runtime by the compiler because the extended call operation code does not exist. Because the number of parameters was not corrected, the call failed when compiling the program with the -Cr flag, which enables RM compatibility mode, and a -Z value less than 71, which sets the object version to earlier than 7.1. This problem has been corrected.