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 it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts How do you create Eclipse based dialogs jasorn IBM Tools 0 Thu Aug 03, 2017 5:05 pm

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