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 

Execute the 2nd step irre of the 1st step..

 
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
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Mon Jan 13, 2003 12:16 pm    Post subject: Execute the 2nd step irre of the 1st step.. Reply with quote

Hi,

I have a jcl as follows :
Code:

//G1NX62T3   JOB (SYST-VFSSYSP,020),'DATA UNLOAD',CLASS=9,
//                      TIME(,30), 
//             MSGCLASS=X,NOTIFY=&SYSUID                             
//*                                                                 
//*                                                                 
//LIBSRCH JCLLIB ORDER=(G1JR00AT.REXX.JCL,                           
//             G1JM00AP.UNLOAD.INCLUDE,                             
//             G1JM00AP.APPVFS.INCLUDE)                             
//*******************************************************************
//*                                                                 
// SET HLQ='&VAR2'                                                   
// SET HLQ1='&VAR1'                                                 
// SET RUNENV=&VAR5                                                 
// SET RUNSEG=&VAR6                                                 
//*                                                                 
//JSTEP10  EXEC UNLD,DETL='N'     
//
//JSTEP12  EXEC RELD,DETL='N'
//*


UNLD & RELD is two procs, which consisits lot of steps..

I wanted the RELD proc should execute irrespective of the UNLD return code

but jstpe12 is having cond(0,LT) in each step. Unfortunately i can't take out this condition code in each step

What is the way to implement this..

Pls provide me some help..

Thanks
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: Mon Jan 13, 2003 1:53 pm    Post subject: Reply with quote

You can read about COND parameter and discover that if you add COND=(0,GT) to proc exec step JSTEP12 it will override the steps within the proc.

//JSTEP12 EXEC RELD,DETL='N',COND=(0,GT) <=override all steps


Bill
Back to top
View user's profile Send private message
MY4114
Beginner


Joined: 18 Dec 2002
Posts: 8
Topics: 2

PostPosted: Mon Jan 13, 2003 2:14 pm    Post subject: Reply with quote

You can also use COND=EVEN. This will allow the step to be executed even if the previous steps have abended or ended in errors.

Code:

//JSTEP12  EXEC RELD,DETL='N',COND=EVEN


-Madhuri
Back to top
View user's profile Send private message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Tue Jan 14, 2003 5:01 am    Post subject: Reply with quote

Bill/Mi

Great.. Thanks a lot for ur response..
Back to top
View user's profile Send private message
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