IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Skipping a step, which executes based on If statement:


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandu_246

New User


Joined: 11 Jun 2007
Posts: 4
Location: switzerland

PostPosted: Tue Oct 07, 2008 10:42 am
Reply with quote

Hi All,

I have a JCL with 30 steps.In that step03 is executed, if the return code from step02 is ZERO.But I want to skip the execution of step03, even if the return code from Step02 is ZERO.All these steps are in proc.I have to mention the Step skipping logic in the job.If I mention cond prarmeter, will it override the If statement?

Suggessions are welcome.

Below Example :

// IF STEP02.RC EQ 0 THEN
//*
//STEP03 EXEC PGM=test23
//*
//INCLM DD DSN=test.data1,
// DISP=SHR
//*
//OUTCLM DD DSN=Test.dada,
// DISP=(,CATLG,DELETE),
// UNIT=(&UNIT,30),SPACE=(CYL,(600,500),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSABOUT DD SYSOUT=5
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=5
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Oct 07, 2008 11:11 am
Reply with quote

Hi,

if you code as below on your EXEC statement it should skip STEP03
Code:
//stepname EXEC procname,COND.STEP03=(0,LE)



Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts To search DB2 table based on Conditio... DB2 1
This topic is locked: you cannot edit posts or make replies. Merge 2 input files based on the reco... JCL & VSAM 2
Search our Forums:

Back to Top