Using a GOBACK statement in an input or output procedure that is used with a SORT or MERGE statement for VS COBOL II subprograms behaves differently under Language Environment than under the VS COBOL II run time.
Under Language Environment, severe condition IGZ0012S is issued. Under VS COBOL II, the subprogram will return to its caller without an error.
⋮
SORT SD01
ASCENDING KEY A3
USING INP1
OUTPUT PROCEDURE OUTPRO1.
⋮
OUTPRO1 SECTION.
⋮
GOBACK.
* With Language Environment, this GOBACK statement will
* cause condition IGZ0012S.