Справочник Пользователя для IBM OS/390

Скачать
Страница из 673
12.4.4.1 Program Termination
There are three COBOL program termination statements:
EXIT PROGRAM
GOBACK
STOP RUN
There are some differences in the effect of these statements between DOS/VS
COBOL and COBOL for OS/390 and VM. Table 33 gives a comparison of the
behavior of these COBOL program termination statements, for DOS/VS COBOL
and COBOL for OS/390 and VM.
Table 33. Action of COBOL Program Termination Statements
Statement
DOS/VS COBOL
COBOL for OS/390
and VM
EXIT PROGRAM
M a i n
Program
No effect
No effect
Subprogram
Return to calling
p r o g r a m
Return to calling
p r o g r a m
GOBACK
M a i n
p r o g r a m
A b n o r m a l job
termination
Return to calling
program (may be
system and cause the
application to end)
Subprogram
Return to calling
p r o g r a m
Return to calling
p r o g r a m
STOP RUN
M a i n
p r o g r a m
Return to system and
cause end of job step
(EOJ)
Return to calling
program (may be
system and cause the
application to end)
Subprogram
Return to system and
cause end of job step
(EOJ)
Return directly to
calling program (may
be system and cause
the application to end)
12.4.5 File Handling Considerations
This section discusses some of the differences in file processing between
DOS/VS COBOL and COBOL for OS/390 and VM.
12.4.5.1 File Status Codes
Many of the file status codes returned from file processing differ between
DOS/VS COBOL and COBOL for OS/390 and VM. These differences and changes
are summarized in the 
COBOL for VSE/ESA Migration Guide and the COBOL for
OS/390 and VM Compiler and Run-Time Migration Guide. You should review the
relevant sections of these publications carefully.
In particular, in the case of VSAM files, you will now need to refer to the VSAM
feedback codes as well as the file status code, to determine the exact nature of
the reported condition.
Chapter 12. COBOL
257