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
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 |
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 |
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 |
What is condition checking in jcl? Is this possible?
I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2. How can I use GDG to use it as input file at step2.
When will we need to specify Space parameter ?
How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?
What are the common keyword parameters in both job and exec statements
Can you delete the GDG base without deleting GDG generations ?
I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....
If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.
How can u know the current date using jcl?
in ways data can be passed to a COBOL program from JCL?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Suppose there r 10 steps . Out fo which i want to execute 10th, 9th and 8th in reverse order without using IEBEDIT. How can i do that..???