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



There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to ..

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

There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to ..

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

Post New Answer

More JCL Interview Questions

wht r s722,s822,s122 and s222 abends pls reply fast

1 Answers   Wipro,


if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 error.

4 Answers   IBM,


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?

6 Answers   IBM,


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

1 Answers   L&T,


Do we need to code DCB parameters when using DISP position as MOD?

1 Answers   Accenture,






WHAT IS DUMMY IN JCL? HOW TO USE IT? CAN ANYBODY SEND PROGRAM ON THIS?

3 Answers  


what is the alternative to model parameter?

0 Answers  


describe the job statement, its meaning,syntax and significant keywords?

1 Answers  


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..

1 Answers   CTS,


What is the function of a dd statement?

0 Answers  


how to run batch program without jcl?

3 Answers   HSBC, IBM,


How do you override a parameter in Positional parameters?

4 Answers   Thomson Reuters,


Categories