There is a procedure in A.B.PROCS(PROC1) (member name is
PROC1)
//PROCA...
There is a call to a procedure PROCA from a JOB.
//STEP01 EXEC PROCA
...
Here "PROCA" in JOB refers to the actual PROC name or the
member name of the PDS where this PROCA is stored.
Answers were Sorted based on User's Feedback
Answer / abhijit18in2002
Procedure library
ABC.XYZ.PROCLIB(PROC1)
//PROCA PROC
....
....
Job Library
ABC.XYZ.JOBLIB(JOBA)
//STEP01 EXEC PROCA
.....
.....
When JOBA is run it will Fail with
JCL error saying :Procedure PROCA not found
It is Compulsion that Member name of Procedure should have
Same name as the Procname.So When PROC1 is Changed to
PROCA .. Job will run fine
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / sj@iy
In this case the job will fail because there is no member
by the name PROCA in the library.
However, there is no compulsion that the name with which
the proc is saved(member name) and the name inside the proc
(procname) needs to match In the sense, in the above case,
if proc is saved as PROCA and inside PROCA the procname
is //PROC1...there will be no issues while making a call as
given by the JCL (i.e. //STEP01 EXEC PROCA)
To conclude, a search is done based on member name and not
based on proc name.
Is This Answer Correct ? | 3 Yes | 0 No |
wht r s722,s822,s122 and s222 abends pls reply fast
if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 error.
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?
i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 9 7 trailer reddy .now i need to sort only body in either asecending or descending order how can i do it
Do we need to code DCB parameters when using DISP position as MOD?
WHAT IS DUMMY IN JCL? HOW TO USE IT? CAN ANYBODY SEND PROGRAM ON THIS?
what is the alternative to model parameter?
describe the job statement, its meaning,syntax and significant keywords?
hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..
What is the function of a dd statement?
how to run batch program without jcl?
How do you override a parameter in Positional parameters?