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
 

 

Restart a Step having IF Condition.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sivakumar somala

New User


Joined: 26 Sep 2007
Posts: 10
Location: Mumbai

PostPosted: Thu Apr 22, 2010 6:04 pm    Post subject: Restart a Step having IF Condition.
Reply with quote

All,

I have a JCL having 4 steps shown below:

Code:
//TESTJOB   JOB 'TEST JOB',CLASS=C,MSGCLASS=X,
//             REGION=32M,NOTIFY=&SYSUID                 
//STEP010 EXEC PGM=PGM1
//FILENAME1 DD HLQ.FIRST.FILE
//CONFIG   DD HLQ.CONFIG.SETTINGS.FILE1
//*
//  IF STEP010.RC = 0 THEN
//STEP020 EXEC PGM=PGM1
//FILENAME2 DD HLQ.SECOND.FILE
//CONFIG   DD HLQ.CONFIG.SETTINGS.FILE2
//  ENDIF
//*
//  IF STEP020.RC = 0 THEN
//STEP030 EXEC PGM=PGM1
//FILENAME2 DD HLQ.THIRD.FILE
//CONFIG   DD HLQ.CONFIG.SETTINGS.FILE3
//  ENDIF
//*
//  IF STEP030.RC = 0 THEN
//STEP040 EXEC PGM=PGM1
//FILENAME2 DD HLQ.FOURTH.FILE
//CONFIG   DD HLQ.CONFIG.SETTINGS.FILE4
//  ENDIF


When the job fails at STEP020, is there any way we can run the job from STEP020 with out changing(without deleting the IF Condition) the JCL much?

Else, Is there any way, we can abend a job from processing the other successive steps in case the RC>0 in the previous step.

Your help is appreciated

Thanks
Siva
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 22, 2010 6:12 pm    Post subject:
Reply with quote

Unless this is a PROC, there is no reason to stop you from removing the IF statements to be able to execute the revised job.

If it is a PROC, then the IF statements really do need to be made as symbolics
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 Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am


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