I have a JCL script that executes a COBOL program through a procedure (PROC0001). Specifically, the goal is to pass parameters to the procedure so that any COBOL program can be executed, and this is source code that is running in a production environment. However, when I try to run the same code on my PC with Enterprise Developer for Eclipse 11 on a Windows platform, the following errors occur:
But when running the JCL script, a series of errors occur.
Specifically, here is the relevant portion of the JCL script:
//JCL0001 JOB (0),'JCL0001',CLASS=?,MSGCLASS=?,USER=????????
//STEP1 EXEC PROC=PROC0001,
// PROGRAM=PGM00001,
// DSN=DBP,
// PLAN=PPGM0001,
// LOAD1=PGMS.LIB.LOAD
Here I attach the part of PROC PROC0001 that I find relevant:
//PROC0001 PROC PROGRAM=XXXL9999,
// DSN=XXX,
// PLAN=XXXP9999,
// LOAD1=STEC.LIBDUMMY.LOAD,
// LOAD2=STEC.LIBDUMMY.LOAD,
// LOAD3=STEC.LIBDUMMY.LOAD,
// OUTC=*,
// RGN=0K,
// PARMS=&PARMS
And the result of the execution produces the following errors:
1 //JCL0001 JOB (0),'JCL0001',CLASS=?,MSGCLASS=?,USER=???????
12 //STEP1 EXEC PROC=PROC0001,
****JCLCM0499I FILE IS EMPTY
13 // PROGRAM=PGM00001,
**** JCLCM0476E Symbol "PROGRAM" was not used.
14 // DSN=DBP,
**** JCLCM0476E Symbol "DSN" was not used.
15 // PLAN=PPGM0001,
**** JCLCM0476E Symbol "PLAN" was not used.
16 // LOAD1=PGMS.LIB.LOAD
**** JCLCM0476E Symbol "LOAD1" was not used.
**** JCLCM0301I Procedure PROC0001 was expanded using the library STS1.PROCLIB
XXPROC0001 PROC PROGRAM=XXXL9999, <=== PROGRAM NAME
// DSN=XXX,
**** JCLCM0410E INVALID CONTINUATION
<=== DB2 SUBSYSTEM (DBD/DBP)
// PLAN=XXXP9999,
<=== DB2 PLAN NAME
// LOAD1=STEC.LIBDUMMY.LOAD, <=== STEPLIB 1
****JCLCM0437E UNEXPECTED STATEMENT
// LOAD2=STEC.LIBDUMMY.LOAD, <=== STEPLIB 2
// LOAD3=STEC.LIBD
****JCLCM0437E UNEXPECTED STATEMENT
UMMY.LOAD, <=== STEPLIB 3
// OUTC=*, <=== MSGCLASS P
****JCLCM0437E UNEXPECTED STATEMENT
ER SYSPRINT
// RGN=0K, <=== REGION SIZE
// PA
****JCLCM0437E UNEXPECTED STATEMENT
RMS=&PARMS <=== PROGRAM PARAMETERS
//* ===========
****JCLCM0437E UNEXPECTED STATEMENT
===========================================================



