Skip to main content
Question

Procedure PROC0001 was expanded using the library

  • February 16, 2026
  • 8 replies
  • 1 view

sergi.yague
Forum|alt.badge.img+1

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 
===========================================================

8 replies

Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 16, 2026

Hi Sergi,

You mention that this is running in a production environment, can you share details of that e.g. product and version, does it use the same JCL job and JCL Proc and COBOL program where it works, I want to establish if you are testing like for like.

Is this the 1st/main error:
12 //STEP1 EXEC PROC=PROC0001,
****JCLCM0499I FILE IS EMPTY 
Can you verify that proc PROC0001, contains valid syntax.

Regards,
Kim


sergi.yague
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • February 16, 2026

I have created a simple example where the same problem occurs. I have the following test JCL:
//RUNTEST JOB (001),'TEST_POC',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID
//* ---------------------------------------------------------
//* CALL THE TESTPROC PROCEDURE LOCATED IN STS1.PROCLIB
//* ---------------------------------------------------------
//PASEXEC EXEC TESTPROC
//

And I have created a procedure that I have included within the STS1.PROCLIB procedure PDS, which I have defined in the region catalog:
//TESTPROC PROC
//* ---------------------------------------------------------
//* TEST PROCEDURE TO VERIFY ACCESS TO STS1.PROCLIB
//* ---------------------------------------------------------
//PAS01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD * 
************************************************** 
*EXIT! THE SYSTEM HAS FOUND THE PROC IN PROCLIB *

**********************************************
/*
// PEND

And after launching the execution, it can be verified that although the TESTPROC procedure is expanded, the message JCLCM0499I still appears:

1 //RUNTEST JOB (001),'TEST_POC',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID

SUBSTITUTION - (001),'TEST_POC',CLASS=A,MSGCLASS=A,NOTIFY=SYSAD

2 //* ---------------------------------------------------------

3 //* CALL THE TESTPROC PROC LOCATED IN STS1.PROCLIB

4 //* ---------------------------------------------------------

5 //PASEXEC EXEC TESTPROC
**** JCLCM0499I FILE IS EMPTY
**** JCLCM0301I Procedure TESTPROC was expanded using the library STS1.PROCLIB 
XXTESTPROC PROC
//* ---------------------------------------------------------

**** JCLCM0409E INVALID OPERATOR 
XX* PROC PROC TO VERIFY ACCESS TO STS1.PROCLIB
//* ---------------------- 
-----------------------------------
//PAS01 EXEC PGM=IEBGENER
//SYSPRINT DD
****JCLCM0437E UNEXPECTED STATEMENT 
SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD * 
****
Output limited by count:
Start: 0000000001
For: 00000031


Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 17, 2026

Hi Sergi,

I recommend you to ensure you are testing with the latest product version and Patch Update installed, this ensure all the latest features and fixes are present.
If the problem persists then it may require further research, in that case please consider to raise a support case (include your recreate files and information) and we will continue to assist you via that.

Regards,
Kim


sergi.yague
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • February 17, 2026

According to the IDE, the version of Enterprise Developer For Eclipse would be as follows:
COBOL for Eclipse IDE

Version: 11.0.63


Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 17, 2026

To check which product version you have installed I recommend you to open an Enterprise Developer command prompt then from there run the command “mfsupportinfo”, the window that opens will show the product/versions/and if any Patch Updates are installed.


sergi.yague
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • February 17, 2026


Display Name    Rocket Enterprise Developer
Display Version    11.0.00250

Display Name    Rocket Enterprise Developer for Eclipse
Display Version    11.0.00250


Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • February 17, 2026

Thanks Sergi, in the mfsupportinfo content is any Patch Update entry listed? 


sergi.yague
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • February 17, 2026

Negative