RESTART - Executing 2 and 3 rd step in 5 step jcl

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
User avatar
ibmlearner
Member
Posts: 13
Joined: Sat Dec 02, 2006 5:57 pm

RESTART - Executing 2 and 3 rd step in 5 step jcl

Post by ibmlearner » Thu Feb 22, 2007 5:20 pm

HI ALL

SAY I HAV 5 STEPS,

//--------JOB CARD --------RESTART=STEP2
//STEP1------
//STEP2------
//STEP3------
//STEP4------
//STEP5------

IM RESTARTING THE JOB FROM THE 2 ND STEP,

MY REQ IS ONLY STEP2 AND STEP3 TO BE EXECUTED ??????


LET ME KNOW APART FROM NULL (//) ANY OTHER WAYS R THERE ??????
Thanks & Regards
-------------------------
Learner

User avatar
muraligaru1
Moderator
Posts: 43
Joined: Sat Nov 11, 2006 7:03 pm

JCL - JOB STEPS

Post by muraligaru1 » Thu Feb 22, 2007 10:39 pm

Use COND parameter, to not to execute these step.



Regards,
Murali

User avatar
guptae
Member
Posts: 8
Joined: Thu Nov 23, 2006 11:28 am
Location: Bangalore,India

Post by guptae » Fri Feb 23, 2007 11:41 am

Hi There,

U can also use IEBEDIT for this

Code: Select all

//STEP1    EXEC PGM=IEBEDIT                       
//SYSUT1   DD DSN=dataset that contain jcl,DISP=SHR 
//SYSUT2   DD SYSOUT=(*,INTRDR)                   
//SYSPRINT DD SYSOUT=*                            
//SYSIN    DD *                                   
  EDIT TYPE=INCLUDE,STEPNAME=(STEP2,STEP3)        
/*    

Ajay Baghel
Member
Posts: 3
Joined: Mon Apr 02, 2007 9:11 am
Location: Bangalore

Post by Ajay Baghel » Thu Apr 05, 2007 11:28 am

Hi,

Tried executing steps in a random order. Like input jcl dataset has steps Step1, step2, step3 in that order.
But on giving

EDIT TYPE=INCLUDE,STEPNAME=(STEP2,STEP1)

Still it executes the step1 before step2.

Is it not the correct order?

Thanks,
Ajay

acevedo
Member
Posts: 12
Joined: Wed Mar 21, 2007 3:44 pm

Re: RESTART - Executing 2 and 3 rd step in 5 step jcl

Post by acevedo » Mon Apr 09, 2007 11:33 am

ibmlearner wrote: IM RESTARTING THE JOB FROM THE 2 ND STEP,

MY REQ IS ONLY STEP2 AND STEP3 TO BE EXECUTED ??????


LET ME KNOW APART FROM NULL (//) ANY OTHER WAYS R THERE ??????
In my opinion the best way is // or just delete the steps you don't want to execute... the second option, as said before, is 'playing' with COND.

Code: Select all

//???????? JOB MSGCLASS=X,REGION=8M,NOTIFY=&SYSUID,            
//          RESTART=STEP20                                     
//STEP10    EXEC  PGM=IEFBR14                                  
//STEP20    EXEC  PGM=IEFBR14                                  
//STEP30    EXEC  PGM=IEFBR14                                  
//STEP40    EXEC  PGM=IEFBR14,COND=((0,NE),(0,EQ))             
//STEP50    EXEC  PGM=IEFBR14,COND=((0,NE),(0,EQ))             

innocent
Member
Posts: 7
Joined: Wed Jun 20, 2007 12:13 pm

Post by innocent » Thu Jun 21, 2007 4:55 pm

what i understand from your query is ..there are 5 step and you need to nullify , some steps in tht proc ..if that is your query then try this

// proc exc proc1 , parameter.stepname=value
parameter =condition
step name = requried step which you would like to nullify

All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this!!

Pls...Let me know is this work for you ...Thanks

Inoccent:)

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 8:21 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:53 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others