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

what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.

6 Answers   HCL,


what is static and dynamic call with examples?

4 Answers   IBM,


What are SD37, SB37, SE37 abends?

4 Answers  


wht r different types of sorts ?

1 Answers   L&T,


When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?

6 Answers  






I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?

2 Answers   IBM,


Suppose I have Five Steps in PROC In this Case I want to Execute third Step in PROC using Main JCL don't use any COND Explain with Coding Thanks & Regards SHREE

4 Answers   Merrill Lynch,


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00

4 Answers  


How do you submit a job for execution?

0 Answers  


If your job fails at particular step then what would be the return code for next steps

3 Answers   ADP,


We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc and not the remaining steps. How can we do it?

5 Answers   IBM, JPMorgan Chase,


Categories