can we write a proc with in a proc

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about ISPF/TSO Commands

1308


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

716


What are s0c1, s0c4, s0c5, s0c7 and socb?

697


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

669


How to override loadlib?

1417






What are hierarchy levels in jcl?

949


how JCL works?

794


What do you understand by the terms: joblib and steplib?

626


What does a disposition of (MOD,DELETE,DELETE) mean ?

664


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1982


what is use of dsn parameter in dd statement?

668


what is the resolution for sb37 error

7700


What do you understand by the term notcat 2 – gs?

751


What is the syntax of JCL statement?

692


Does jcl support automatic restart?

759