View previous topic :: View next topic |
Author |
Message |
psridhar Beginner
Joined: 16 May 2004 Posts: 68 Topics: 26
|
Posted: Wed Dec 14, 2005 12:30 pm Post subject: Set Return Code of previous step to 0 |
|
|
Hi
I need to set one step's return code to zero after executing one SQL.
JCL I am trying is given below.
Code: | //T5MP413X JOB (00511200,MFA),'TCPIP',MSGCLASS=X,REGION=4096K,
// MSGLEVEL=(1,1),CLASS=Q,NOTIFY=&SYSUID
//*
//TCPIP1 EXEC PGM=FTP,PARM='(EXIT'
some TCPIP commands...
some TCPIP commands...
//*
//UPDTRC IF ( TCPIP1.RC > 00 ) THEN
//*
update SQL on one table ...
//*
//RESETRC EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC=0
//* |
1. Run TCPIP1 step
2. Run UPDTRC step based on the return code of TCPIP1
3. Set the return code of TCPIP1 to Zero.
Irrespective of return code of TCPIP1, my job should return return code 0. It is possible by any means...
I have gone through the link
http://mvsforums.com/helpboards/viewtopic.php?t=1133&highlight=set+return+code
Thanks
Sridhar P |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Dec 14, 2005 1:26 pm Post subject: |
|
|
Your question was answered in the link you mentioned. This only possible by manipulating system control blocks (not recommended)! _________________ 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 |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Wed Dec 14, 2005 3:24 pm Post subject: |
|
|
psridhar,
What does the retrun code of 0 buy, if the job has to successfully end and/or trigger other jobs, set the MAX retrun code on the Scheduler for this job to whatever that code will be. Thanks |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Dec 14, 2005 3:41 pm Post subject: |
|
|
Or you can run the whole process under Rexx within TSO (IKJEFT01) and set whatever return code you want. |
|
Back to top |
|
 |
|
|