Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Compiler and Runtime Migration Guide


In VS COBOL II subprograms

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.

When running VS COBOL II programs under Language Environment, the difference in behavior occurs when:

Under Language Environment, severe condition IGZ0012S is issued. Under VS COBOL II, the subprogram will return to its caller without an error.

For example:
⋮
    SORT SD01
       ASCENDING KEY A3
       USING INP1
       OUTPUT PROCEDURE OUTPRO1.
⋮
OUTPRO1 SECTION.
⋮
    GOBACK.
    * With Language Environment, this GOBACK statement will
    * cause condition IGZ0012S.
Note: With the scenario above, with VS COBOL II (as with Language Environment), if the COBOL program issuing the SORT or MERGE is a main program, an error message is generated.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)