The GETINFO intrinsic function returns the string specified in the INFO argument of the command line. A typical HP COBOL command line includes program parameters in the INFO argument. The structure of the ACUCOBOL-GT command line includes the name of the COBOL program as well as the program parameters in the INFO argument.
To cause GETINFO to return only the arguments that follow the COBOL program name (identical behavior to HP COBOL), you must include a " ;" delimiter between the COBOL program name and the other parameters in the INFO argument.
For example, if the HP COBOL command line looks like:
:RUN MYPROG;INFO='info1 info2'
a call to GETINFO will return info1 info2. To get the same result with ACUCOBOL-GT, the command line must look like:
:RUN /ACUCOBOL/bin/runcbl;INFO='MYPROG ;info1 info2'
If the " ;" delimiter is left out of the INFO argument, a call to GETINFO will return MYPROG info1 info2. Note that there must be a space before the semi-colon and no space after the semi-colon.