Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us