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 |
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.
CAN ANYONE TELL ME WHAT IS "JOB-CARD"
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
How can values be passed from the job stream to an executable program?
How to concatenate different LRECL of files?
a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?
A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?
what are the options in file-aid to edit vsam dataset and to compare data sets.
i have a jcl calling proc which has 10 steps, i want to execute from step5 to step10, where can i code RESTART and COND parameter?
what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
what is JCLLIB and PROCLIB in jcl and their syntax