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
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 |
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 |
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 |
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 |
Answer / gani.....
in job card give restart=jobstename.procstepname
| Is This Answer Correct ? | 0 Yes | 1 No |
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 |
Answer / ch.mohan
using cond=even
even use to only perticular step was executed indipendently
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sowdamini
we can override step1 and 3 by dd dummy statements.
| Is This Answer Correct ? | 1 Yes | 4 No |
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.....
Name a few IBM utility programs, and explain its function.
What is the purpose of disp parameter?
How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?
Explain about ISPF/TSO Commands
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two
Suppose I have five jobs to do. But I want to hold one?
wht is sysudump n sysout,sysprint ?
How to empty the records in jcl
What is job control language?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.