Skip to main content
Question

JCL Unexpected Error

  • March 17, 2026
  • 3 replies
  • 33 views

Bruce Cheatwood
Forum|alt.badge.img+2

I have the following JCL and called PROC

JCL

//QCR10201 JOB(00123-QCR-P-010,BX01),QCR,CLASS=A,MSGCLASS=X

//PROCLIB JCLLIB ORDER=(PROD1.PROCLIB)

//CB110201 EXEC CB110201

//SYSIN DD *

00179   989

/*

//

/*EOF

 

 

PROC

//CB110201 PROC

//CB110201 EXEC PGM=IKJEFT01

//SYSDUMP DD SYSOUT=*

//SYSPRINT DD SYSOUT=*

//SYSLOG DD SYSOUT=*

//SYSOUT DD SYSOUT=*

//SYSTSPRT DD SYSOUT=*

//SYSTSIN           DD *

                DSN SYSTEM(QCRS)

                RUN PROGRAM(CB110201)

                END

/*

 

When run it gets

**** JCLCM0437E UNEXPECTED STATEMENT

4 //SYSIN DD *

 

Any ideas what is wrong?

3 replies

Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • March 18, 2026

Hi Bruce,

I took your sample and submitted it on my version 10 PU12 region but don’t see that message.
Which OS and product version is being used? If not using the latest Patch Update please consider to install that on a test environment then check if that helps.
Also, can you share the full job output? This can help understand where exactly the message come from (JCL or proc).

If further investigation is required then I recommend you to raise a support case where one of my colleagues will be able to assist further, when raising the case please include the above information and also a region export as a starting point.

Regards,
Kim


 


Bruce Cheatwood
Forum|alt.badge.img+2

I am starting to wonder if it has something to do with how the PROD1.PROCLIB PDS is defined.  When I paste the proc into the JCL and submit it works.  I am running ES-10 on a Windows 11 machine.

PDS definition

DS Org:  PO

Codeset: ASCII

LRECL:  82

BLKSIZE: 0

RECFM: LSEQ

Dynamic PDS is checked.


Kim Hoskin
Forum|alt.badge.img+2
  • Moderator
  • March 19, 2026

I recommend you to check if using the latest Patch Update to ensure you have all the latest fixes available, if that does not help consider raising a support case for further investigation.