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

Is it possible to left uncode disp? If yes, how?

708


i want to store 20 digits . how will u do it in cobol ?

860


Is acct parameter mandatory?

762


what JCL Procedures?

701


What is the function of //jcllib statement?

806






How is a type of file defined in the jcl that executes the cobol program?

713


What parameters can be used to limit the number of records written to a sysout dataset?

750


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1801


What are steplib and joblib?

725


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1039


How is the record format of an output dataset specified?

745


which utility is used to run a cobol-db2 program?

810


What is condition checking in jcl? Is this possible?

626


A dd statement consists of 4 fields. Name them?

932


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

671