Search code examples
c++zosjcl

JCL Error trying z/OS JSON parser programming example


I tried copying the c++ example as mentioned here -

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.ieac100/ieac1-cwe-json-prog.htm

However, I am getting the following JCL error when running on my system :

 IEF344I XC1CPLLE COMPILE SYSLIB - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
 IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET
 SIEAHDR.H
 IEF272I XC1CPLLE COMPILE - STEP WAS NOT EXECUTED.

Here is a copy of my modified program :

https://gist.github.com/4349183c3ec6d223a0073b87b9c2da8b


Solution

  • The JCL to which you provide a link contains a JCL error. The SYSLIB DD of the COMPILE step has no DISP and thus defaults to DISP=(NEW,DELETE,DELETE). A status of NEW requires space allocation and none is provided, so you get the error in your question. To fix this particular problem, I suggest coding DISP=SHR on the SYSLIB DD in the COMPILE step.

    I recommend talking to your support staff about standard compile procedures, as most shops implement their own.