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

what is the difference between the JCLLIB and JOBLIB ,and where do we use it ?

3 Answers   Convergys,


once we submitted the job to the operating system, how can we cancel the job before execution?

2 Answers  


Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE

8 Answers   IBM,


Explain about LMOPEN -

1 Answers  


In JCl which of this activities get executed if act002 abnormally terminates //job001 job ......... //act001 exec pgm=cobo01 //act002 exec pgm=cob02, cond=(01,le) //actoo3 exec pgm=cob03, cond=only //actoo4 exec pgm=con04

3 Answers   Patni,






Name the system library from which modules are retrieved at execution

3 Answers  


How can values be passed from the job stream to an executable program?

0 Answers  


There are two input sorting files and there is a need to create one sort out file which contains data of both input files. What is the sort card for this. Write a sample JCL for this using a control card?

3 Answers  


What is dummy parameter in JCL??

3 Answers   TCS,


Hi, can any one tell about " How do u eliminate the duplicates "

2 Answers   Cap Gemini,


What is the error code SOC01 indicate ?

5 Answers   Microsoft,


how can you check if a file is empty using jcl?

0 Answers   IBM,


Categories