If we have 100 job steps in JCL and we want to excute steps
only starting from 43 to 50, then how it can be coded in JCL/
Answers were Sorted based on User's Feedback
Answer / shaik.apsar
While submitting the JCL, use RESTART=Step43.
And from steps 50 step complet i am close the //
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / avinashn17
use the following,
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXX(MEMBER),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP43-STEP50)
/*
only steps 43-50 would be included and executed.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / aloke deb
A new and better way of doing this is by using the IEBEDIT
utility. The syntax is:
//IEBEDITJ JOB ACCT,'',CLASS=P,MSGCLASS=T,MSGLEVEL=
(1,1),NOTIFY=&SYSUID
//STEP0001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=xxxxx.yyyyy.zzzzz,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP10,STEP5,STEP15)
/*
//
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / vssd
While submitting the JCL, use RESTART=Step43
And from steps 51 thru 100, use COND=ONLY in step EXEC
statement.
Hope this helps, please correct me if wrong.
| Is This Answer Correct ? | 11 Yes | 8 No |
Answer / vinay sonar
Use IEBEDIT
//STEP2 EXEC PGM=IEBEDIT
EDIT TYPE=INCLUDE,STEPNAME=(STEP43-STEP 50)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / astha mittal
I don't want to use COND=ONLY..then what will be the next
alternative..sorry to bug u as interviewer has aske me like
this...
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / vichu
asha , u can try using IF RC not equal 0 THEN --- ENDIF
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / sundar
While submitting the JCL, use RESTART=Step43.
And from steps 50 step complet i am close the /* is it
correct plz tell me
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nitesh sethi
IEBEDIT can be used but the syntax needs to be bit modified.
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP10,STEP5,STEP15)
/*
//
Instead of this it will be
//SYSIN DD *
EDIT START=IEBEDITJ,TYPE=INCLUDE,
STEPNAME=(STEP10,STEP5,STEP15)
/*
//
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / yogesh s p
//jobname job , ,con=(4093,gt,step49)
//step1 exec pgm=
//step2
.
.
.
.
.
.
.
//step50 exec pgm=.....,
it will execute 49 th step before executing 50 step it will
check the return code of 49th it will satisfies the
condition so it wont execute the step50 it will come out of
the sequence.
| Is This Answer Correct ? | 0 Yes | 5 No |
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
which statement is used to end the in-stream procedure in a jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?
Why 16 is used in calculating the DPRTY ? as, DPRTY = (num1, num2), THEN, DPRTY = 16* num1 + num2
What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?
What is the function of dd disp parameter?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
How to check empty file in jcl?
Can we use two or more SYSPUNCH DD statements in a JCL for multiple unload (SYSREC00 & SYSREC01)..?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?