OnDemand User Group
Support Forums => z/OS Server => Topic started by: Steve Lance on February 07, 2020, 01:16:50 PM
-
We have some JCL that does a IEBGENER. It copies a AFP file to OnDemand. When we execute the JCL, we receive return code of 0. But, when the file tries to load to OnDemand, the file does not load and OnDemand gives a bad return code. We think everything is loaded correctly since we receive a return code of 0. My question is there a way to pick up the OnDemand return code and present it to the executed JCL?
-
It sounds like you are dumping the file to the spool versus using the arsload in the JCL. If you have arsload in the JCL and it still is not giving you are return code, let us know the parms on the arsload statement in the JCL and what version of OnDemand you are running.
-
We are dumping the file to the spool.
-
Then it is not possible to capture the OnDemand success or failure error code in JCL. I recommend for any critical loading you use arsload via the batch JCL method, any failures will provide a non zero return code.