I have 5 steps in my job. say s1, s2, s3, s4, s5
//s1 exec .............

//s2 exec ............

//s3 exec ..........

//s4 exec ........

//s5 exec ...............

my question is i want to exeute only s2 and s4 steps...
please advice me how to do this:

Answers were Sorted based on User's Feedback



I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ........

Answer / kiran kumar

code always true condition on s1 s3 s5 steps using cong
parameter Ex: //s1 exec..... cond=(4096,gt)



or
by using iebedit utility
//job exec pgm=iebedit
//s1
//s2
//
//
//s5
//sysin dd *
start jobname type=include (s2,s4)
//

Is This Answer Correct ?    10 Yes 0 No

I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ........

Answer / sanvz

the best way to acheive this
restart = step2 and code in step 3 cond as 0,eq
and after step 4 add null stmt

Is This Answer Correct ?    7 Yes 0 No

I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ........

Answer / girish kumar

by using iebedit utility u can solve this easily.
first u code all steps in saparate member using iebedit
utility and then write another jcl program menction member
name like pgm=membername and
then code like this.

sysin dd *
edit type=include,stepname=(s2,s4)

Is This Answer Correct ?    1 Yes 0 No

I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ........

Answer / siri

using iebedit utility...
//jobname job ,,,,,,,,
//step exec pgm=iebedit
//sysut1 dd dsn=eidujk.hii.jcl,disp=shr
//sysut2 dd dsn=sysout=(*,intrdr)
//sysprint dd sysout=*
//sysin dd *
edit start=jobname,type=include,step name=(step2,step4)
/*

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.

1 Answers   IBM,


how can you check if a file is empty using jcl?

0 Answers   IBM,


In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the last step should then be executed (send a message to an user). Due to we don't like to change all our JOB's (ca. 2000), we are looking for a simply solution.

4 Answers  


What is a PROC? What is the difference between an instream and a catalogued PROC?

2 Answers  


IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the second step using the JCL, How to do it?? Please give the answer ASAP:)

8 Answers  






One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?

1 Answers   CTS,


CAN ANYONE TELL ME WHAT IS "JOB-CARD"

4 Answers   Syntel,


what will be the error code if duplicate key of VSAM file is found?

1 Answers   HSBC, Kings,


i have five step in jcl.my forth step is gdg.gdg was abend.when will job complete,hoe to handle you

3 Answers   L&T, Wipro,


in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?

5 Answers   ADP,


Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


How many parameters are there to a DISP statement and what are their uses ?

3 Answers  


Categories