superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You can't (not really, anyway).
You can send data to SYSOUT by using the COBOL DISPLAY statement, or you can write data to output as sysout or print data, or you can write the data to an external cataloged dataset, which can then be passed to another job step or another job for processing by another program.
You can, however, set a numeric value in the COBOL special register RETURN-CODE, which IS passed back to the calling job, which can then take a pre-determined course of action depending on the value specified. |
|