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

AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I GET THE PROGRAM FOR THIS

3 Answers  


A job has 90 steps i want to execute only step7 and step15

3 Answers   Cognizant,


How to read records in reverse order in flat file?

1 Answers  


What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?

4 Answers   IBM,


I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.

2 Answers   Syntel,






Can we have a JOBSTEP without any EXEC ?

6 Answers   IBM,


you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.

3 Answers  


What is a JCL Command statement ?

1 Answers   IBM,


a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file

6 Answers   ITC Infotech,


Give the syntax of job specifying jcl statement.

0 Answers  


How to identify where file is empty or not? How many ways are there to identifying?

3 Answers   CTS,


What is catelog procedure and how many catelog procedure to use in one job?

2 Answers   Infosys,


Categories