Author Topic: Return Code from OnDemand  (Read 1602 times)

Steve Lance

  • Jr. Member
  • **
  • Posts: 33
    • View Profile
Return Code from OnDemand
« 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?

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Return Code from OnDemand
« Reply #1 on: February 07, 2020, 01:58:50 PM »
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.
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Steve Lance

  • Jr. Member
  • **
  • Posts: 33
    • View Profile
Re: Return Code from OnDemand
« Reply #2 on: February 07, 2020, 02:12:07 PM »
We are dumping the file to the spool.

Nolan

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Return Code from OnDemand
« Reply #3 on: February 07, 2020, 02:16:39 PM »
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.
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN