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
Is it possible to left uncode disp? If yes, how?
i want to store 20 digits . how will u do it in cobol ?
Is acct parameter mandatory?
what JCL Procedures?
What is the function of //jcllib statement?
How is a type of file defined in the jcl that executes the cobol program?
What parameters can be used to limit the number of records written to a sysout dataset?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What are steplib and joblib?
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
How is the record format of an output dataset specified?
which utility is used to run a cobol-db2 program?
What is condition checking in jcl? Is this possible?
A dd statement consists of 4 fields. Name them?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?