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 |
HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)
how can i use the parameters decalred in main pgm in sub pgm
I have 255 procedures in a job, each procedure contain 2 steps.can we execute this job?
How can the attributes of one sms dataset be copied to another dataset?
what do you mean by include statement in jcl?
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
what is the difference between perform varying and perform
GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?
When output dataset space is required, what quantity categories are used?
What statement can be used to send data to another mvs jes3 node?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I want to change the condition with out changing the jcl. Please provide with a sample code.