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



If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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 ?    5 Yes 0 No

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

Answer / vinay sonar

Use IEBEDIT

//STEP2 EXEC PGM=IEBEDIT
EDIT TYPE=INCLUDE,STEPNAME=(STEP43-STEP 50)

Is This Answer Correct ?    3 Yes 0 No

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

Answer / vichu

asha , u can try using IF RC not equal 0 THEN --- ENDIF

Is This Answer Correct ?    3 Yes 2 No

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how i..

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

Post New Answer

More JCL Interview Questions

How can we execute only one step in a job

22 Answers   MAHINDRA, Mind Tree, Tech Mahindra,


i have a file which contains duplicates ? my requirement is to eliminate duplicates and these elminated duplicates should be moved to another file can any code this using sort ?

3 Answers   IBM,


what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?

1 Answers  


List the different jcl statements that are not permitted in the procedures?

0 Answers  


What is the significance of addrspc parameter in exec statement?

0 Answers  






What does the keyword DCB mean and what are some of the keywords associated with it?

3 Answers   ITC Infotech,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


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 to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)

1 Answers   MSN Pharma, UST,


what sort card you will use to copy the data from one dataset to another dataset?

0 Answers   IBM,


Explain about LMPUT-

1 Answers  


Explain the jcl exec statement?

0 Answers  


Categories