View previous topic :: View next topic |
Author |
Message |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Wed Mar 01, 2006 11:24 am Post subject: Getting return code from a jcl |
|
|
'morning,
How can i obtained and handle a return code in a pgm cobol batch at the end of a jcl?
e.g.
//step1 (ok rc=0)
.
.
// step2 (ko rc=13)
.
.
//mystep exec pgm=mypgm,
//.....
mypgm must capture rc = 13
thank a lot |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Wed Mar 01, 2006 2:30 pm Post subject: |
|
|
You can use REXX to trap the previous step's RC, and store it in a dataset/membder. thisis only one of many examples in Google.
O.
________
PORNSTARS AUGUST |
|
Back to top |
|
 |
|
|