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 is the significance of addrspc parameter in the exec statement?

0 Answers  


Explain about REXX

1 Answers  


how to code instream data in procedure?

3 Answers  


what's the significance of freespace(0 0) and freespace(100 100)

3 Answers  


What is STEPLIB, JOBLIB? What is it used for?

2 Answers  






what is “Cond= even” and “Cond=only”?

0 Answers  


How many extents are possible for a sequential file ? For a VSAM file ?

3 Answers  


what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.

5 Answers   BirlaSoft, Infosys,


I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?

2 Answers  


difference between internal sort and external sort

1 Answers  


i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?

4 Answers   DELL,


what is the alternative to model parameter?

0 Answers  


Categories