MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set Return Code of previous step to 0

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
psridhar
Beginner


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Wed Dec 14, 2005 12:30 pm    Post subject: Set Return Code of previous step to 0 Reply with quote

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
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Dec 14, 2005 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Dec 14, 2005 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Dec 14, 2005 3:41 pm    Post subject: Reply with quote

Or you can run the whole process under Rexx within TSO (IKJEFT01) and set whatever return code you want.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group