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

Restart a Step having IF Condition.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 22, 2010 6:12 pm
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 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 Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top