Joined: 11 Dec 2008 Posts: 13 Location: Phoenix, AZ, USA
I have already tried linking my program to DFSCDLI0 instead of DFSCDL10.
Still when I am executing the Stored procedure, it is failing in the allocation of the PSB with the same AIBRETRN and AIBREASN codes.
When I am linking my program with DFSCDL10 it is failing in the Compilation with the following error:
THE DATA SET SPECIFIED BY DDNAME LOAD COULD NOT BE FOUND, AND THUS HAS NOT BEEN INCLUDED.
The PSB allocation logic in my IMS-DB2 Stored procedure is:
SET AIBRESA1 TO NULLS.
SET AIBRESA2 TO NULLS.
SET AIBRESA3 TO NULLS.
MOVE ZEROES TO AIBRETRN.
MOVE ZEROES TO AIBREASN.
MOVE WS-AIBID TO AIBID.
MOVE LENGTH OF AIB TO AIBLEN.
MOVE ZEROES TO AIBOALEN.
MOVE PSBNAME TO AIBRSNM1.
MOVE IMSM TO AIBRSNM2.
MOVE SPACES TO AIBSFUNC.