can we write a proc with in a proc
Answers were Sorted based on User's Feedback
Answer / nithya
Yes, writing a proc inside a proc is possible.
Upto 15 levels of looping cataloged proc is possible,
But an instead proc cannot be coded in a cataloged proc.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / muttaiah
Jeetendra,
I'm not sure what you are going to say..But, it's possible
to code a proc(procedure) within a proc(procedure).
I mean proc can also be referred as procedure...vice-
versa.EX:
//job1 job Operands/Parameters
//Proclib JCLLIB order=(
proc1.library,
proc2.library,
proc3.library)
//Jstep1 exec pgm=
//step3 exec Proc=Proc1 or //step3 exec proc1
//Proc1 Proc
//pc1step1 exec pgm=
//pc1step2 exec proc2
//proc1 pend
//proc2 proc
//pc2step1 exec pgm=
Remember in proc1 i have not coded JCLLIB since job,
jcllib, joblib are not allowed here.
proc2 will be pulled from the library mentioned in the job.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jeetendra kumar patel
No, We can not write procedure widin a procedure. Istead of it we have to call a control card.
Actually control card is the member of PDS or PS file. SO if there is any need of something like procedure widin procedure we have to call the control card.
Is This Answer Correct ? | 0 Yes | 4 No |
Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?
What is the difference between BLKSIZE and LRECL?
Explain about SYSVAR
What is the error in the following JCL statements : I) //step#three exec pgm=hkbc762 ii) //step#3 exec pgm = hkbc762 iii) //step#3 exec pgr = hkbc672
How to delete generations of gdg without deleting gdg base?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
What do you understand by jcl?
Suppose i have 2 steps in my pgm. Step1- creates a file, Step2 - generates report from file in step1, What changes have to be made in Step2, so that if the file in Step1 is empty Step2 should not be executed? No changes to be made to Step1.
Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?
Explain the function of the steplib dd statement?