Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Skipping a step, which executes based on If statement:

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Skipping a step, which executes based on If statement:
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: 1703
Location: Australia

PostPosted: Tue Oct 07, 2008 11:11 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us