View previous topic :: View next topic |
Author |
Message |
zefrim Beginner
Joined: 29 Jun 2006 Posts: 22 Topics: 19
|
Posted: Wed Sep 12, 2007 3:44 am Post subject: Return Code in a JCL |
|
|
Hello
I would set manually gladly into my JCL a return code.
Example:
//TEST EXEC PGM=ABC
//SET RC = 0
Thus the return code of the PGM ABC should be set to 0
Question: this is possible - it exisitert so a COMMAND
Thank you
Zefrim |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Wed Sep 12, 2007 4:32 am Post subject: |
|
|
zefrim,
My suggestion:
Code: |
//TEST EXEC PGM=ABC
.....
//GA8D2606 EXEC PGM=IDCAMS
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=T
//*
//SYSIN DD *
SET MAXCC = 0
/*
|
Hope this helps.
Vivek G |
|
Back to top |
|
 |
blitz2 Beginner

Joined: 23 Jan 2007 Posts: 84 Topics: 14
|
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Sep 12, 2007 7:46 am Post subject: |
|
|
zefrim,
Also be aware that the RC=0 is for that STEP only. You can not reset what the system knows is the MAXCC for the job. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Sep 12, 2007 11:40 am Post subject: |
|
|
Bill is, of course, right. Which means that if you want a step that returns RC=0, IEFBR14 would do. |
|
Back to top |
|
 |
|
|