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

Why do you use a control card?

3 Answers   IBM, iNautix,


I HAVE A SEQUENTIAL FILE CONTAINING ONE RECORD IN WHICH I HAVE ONE FIELD AS CUSTOMER IDENTITY NUMBER FIELD WHICH IS A SIGNED FIELD. HOW TO SEQUENTIALLY INCREMENT THIS FIELD USING OVERLAY PARAMETER?.

1 Answers  


I have Job A and Job B. I want to trigger Job B from Job A. Please advise.

2 Answers   Wipro,


Name the system library from which modules are retrieved at execution

2 Answers  


What happens if both JOBLIB & STEPLIB is specified ?

0 Answers  


How to pass the parameter in parm using linkage section ? (syntax)?

0 Answers   Infosys,


which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


What are the common keyword parameters in both job and exec statements

4 Answers   Cap Gemini,


Explain how can return codes be tested before execution of a job step?

0 Answers  


I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


How to ALTER the name of a GDG ?

2 Answers   IBM,


Categories