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

What it does If we specify TYPRUN=P & it is not substituted by SCAN 0r HOLD in VALUE SET.

0 Answers  


What is the difference between sb37,se37,sd37 each?

9 Answers   TCS,


My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?

2 Answers   HCL,


i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

6 Answers   IBM,


State the uses of syspring, sysin, sort fields, sum fields and dummy.

0 Answers  






Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) What is SPOOL and what is SPOOL FULL ? and how to direct the output of a Jobstep to SPOOL ?

3 Answers   IBM,


Describe the JOB statement, its meaning, syntax and significant keywords?

1 Answers  


what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..

3 Answers   Cognizant,


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

5 Answers   CitiGroup,


how do u see jobs submitted before ur job ?

1 Answers  


Which storage devices are grouped under DASD and SYSDA ?

1 Answers   IBM,


How can i execute 5th step without executing first 4 steps?

4 Answers  


Categories