MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
Anand_R Intermediate Joined: 24 Dec 2002 Posts: 189 Topics: 60
Posted: Mon Jan 13, 2003 12:16 pm Post subject: Execute the 2nd step irre of the 1st step..
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
Bill Dennis Advanced Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
Posted: Mon Jan 13, 2003 1:53 pm Post subject:
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
MY4114 Beginner Joined: 18 Dec 2002 Posts: 8 Topics: 2
Posted: Mon Jan 13, 2003 2:14 pm Post subject:
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
Anand_R Intermediate Joined: 24 Dec 2002 Posts: 189 Topics: 60
Posted: Tue Jan 14, 2003 5:01 am Post subject:
Bill/Mi
Great.. Thanks a lot for ur response..
Back to top
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