can we write a proc with in a proc

Answers were Sorted based on User's Feedback



can we write a proc with in a proc..

Answer / swathiii

Yes. We can write proc with in a proc.

Is This Answer Correct ?    12 Yes 1 No

can we write a proc with in a proc..

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

can we write a proc with in a proc..

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

can we write a proc with in a proc..

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

Post New Answer

More JCL Interview Questions

Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?

6 Answers   IBM,


What is the difference between BLKSIZE and LRECL?

3 Answers  


Explain about SYSVAR

1 Answers  


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

6 Answers  


How to delete generations of gdg without deleting gdg base?

3 Answers  






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

0 Answers  


What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?

8 Answers   Accenture, TCS,


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

0 Answers  


What do you understand by jcl?

0 Answers  


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.

4 Answers   TCS,


Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?

3 Answers  


Explain the function of the steplib dd statement?

0 Answers  


Categories