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
 
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: 8619
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 Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 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 it is possible output a SET value fro... Martylin JCL & VSAM 6 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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm

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