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 |
Can you give the sort card to arrange the specific column in the version of GDG.
What is the function of job statement in jcl?
i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?
wht is sysudump n sysout,sysprint ?
I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?
What is the difference between primary and secondary allocations for a dataset?
hi friends........if u know syntax of IEBEDIT IN JCL
is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)
I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?
How do you override a specific DDNAME/SYSIN in PROC from a JCL?
Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.
THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020.C),EVEN) COULD ANY ONE EXPLAIN HOW COND PARAMETER WORKS HERE? I AM CONFUSED BECOZ OF "EVEN".