COBOL Retum code



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

COBOL Retum code

Postby amdparsn » Sat Dec 15, 2007 4:30 pm

How to pass return codes from cobol to jcl?
amdparsn
 
Posts: 2
Joined: Sat Dec 15, 2007 4:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL Retum code

 

Re: COBOL Retum code

Postby MrSpock » Sat Dec 15, 2007 10:27 pm

MOVE some value between 0 and 4095 TO RETURN-CODE.
STOP RUN.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: COBOL Retum code

Postby dick scherrer » Sun Dec 16, 2007 8:21 am

Hello,

Many sites prohibit the use of STOP RUN these days.

GOBACK will also set the return code from the COBOL program.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post