Can you execute a PROC from another PROC?
Answer Posted / sivakumar sekharannair
We can execute a proc from another proc. I tried and
executed sucessfully.
my job steps:
//PROCLIB JCLLIB ORDER=PROGMR.SIVANAIR.JCLLIB
//JOBLIB DD DSN=UAUT.NDVR.PGMLOAD,DISP=SHR
//STEP001 EXEC AUT001
first proc steps:
//AUT001 PROC
//STEP001 EXEC PGM=AUT0EMP,COND=(0,LE)
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STEP002 EXEC AUT002
Second proc steps:
//AUT002 PROC
//STEP001 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
JOb log:
JOBNAME STEPNAME PROCSTEP RC EXCP CPU SRB CLOCK
AAUT001D STEP001 STEP001 00 48 .00 .00 .00
VS0010I AAUT001D 08.206 C STEP002 STEP001 ** R0000 **
AAUT001D STEP002 STEP001 00 48 .00 .00 .00
EF404I AAUT001D - ENDED -
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What are some jcl statements that are not allowed in procedures?
What is the function of the dd avgrec keyword in sms datasets?
What is the use of disp parameter?
what is the use of IEBGENER utility?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
Explain about LMQUERY�give a dialog information about a data set
Differentiate between addressing mode and run mode.
What parameter directs the output of the job log dataset?
How can return codes be tested before execution of a job step?
Explain the function of job statement in jcl?
Explain how can an in-stream dataset be terminated?
What are the parameter we cannot use in procedure?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Is condition checking possible in jcl? If yes, how?