IF we are calling a PROC from Jcl...This Proc have 3 steps
in it and we want to execute only the second step using the
JCL, How to do it??

Please give the answer ASAP:)

Answers were Sorted based on User's Feedback



IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / biswajit

Sorry there is little modification on JOB CARD to my
earlier answer.
In Job card RESTART = Proc stepname.stepname ie
STEP2.Stepname of job that invokes the proc This will result
to start at STEP2 of proc.
In Exec statement of the job that invoking the proc u can
code COND.STEP3 = (0,LE),The result of this is the STEP3
of proc will have COND=(0,LE).Whcih is allways true so this
step will be always bypassed.As a result of both only STEP2
of proc will be excuted.

Is This Answer Correct ?    13 Yes 2 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / chandra babu

In job card : RESTART=Step name of the PROC.Step02,
COND=(0,LE, Step name of the PROC .Step03)

Is it correct?

Is This Answer Correct ?    4 Yes 1 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / biswajit jena

In Job card RESTART = Procname.STEP2.This will result the
to start at STEP2 proc.And
In Exec statement of the job that invoking the proc u can
code COND.STEP3 = (0,LE),The result of this is the STEP3
of proc will have COND=(0,LE).Whcih is allways true so this
step will be always bypassed.As a result of both only STEP2
of proc will be excuted.

Is This Answer Correct ?    3 Yes 2 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / muttaiah

Hi,
I have executed the jcl as per answer#4, it worked f9.
I have a question here, if there are three steps we are
giving cond parm as cond.step3=(0,le)
If there are 5 steps in proc, how to specify the cond parm
in exec step which is calling that proc.
Please suggest me how to accomplish this.

Immediately reply would be greatful.

Is This Answer Correct ?    0 Yes 1 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / gani.....

in job card give restart=jobstename.procstepname

Is This Answer Correct ?    0 Yes 1 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / rahul singh

On Job card : Restart=jobstep(step that calls the proc).step2
On Jobstep(step that calls the proc): COND=(0,LE)

Is This Answer Correct ?    0 Yes 2 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / ch.mohan

using cond=even
even use to only perticular step was executed indipendently

Is This Answer Correct ?    0 Yes 2 No

IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the s..

Answer / sowdamini

we can override step1 and 3 by dd dummy statements.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More JCL Interview Questions

How to print the Output to SPOOL using MSGCLASS and SYSOUT ?

4 Answers   IBM,


When will we need to specify Space parameter ?

3 Answers   Wipro,


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


lines(1,cancel)??What is meant by that??Plz explain it....

1 Answers   IBM,


What is DISP= (NEW,PASS,DELETE)?

3 Answers   HCL,


Explain the function of //cntl statement?

0 Answers  


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

0 Answers   IBM,


Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?

1 Answers   IBM,


how to create a member or sequential dataset through tso command??

4 Answers  


If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,

3 Answers   IBM,


What are three major types of JCL statements? What are their functions?

1 Answers  


Explain about LMGET�read a logical record from a data set

1 Answers  


Categories