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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why block size is multiple of lrecl in jcl?

908


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

904


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

969


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

711


What are the difference between jcl and jes?

1046






How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5058


What are the parameters that are used in creating a gdg?

735


Can I send output of job to my remote device careerride123?

661


How is the record format of an output dataset specified?

743


What is the function of the steplib dd statement?

735


Are there any set of rules for the names of the steps used in a job? What are they?

610


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

520


Explain the function of the dd dcb keyword?

694


what is use of dsn parameter in dd statement?

666


how you can access an uncataloged dataset in a JCL?

649