Db2 return codes

n
A positive value that indicates the results of the call to the Db2® instrumentation facility interface (IFI). If the RC from the Db2 IFI is not zero, the REXX variable DB2_RC2 contains the Db2 IFI reason code. The DB2_RC2 value is used in conjunction with the RC by using Db2 codes in Db2 for z/OS product documentation for error determination.
0
The Db2 command was processed by the Db2 IFI.
50

The specified Db2 command is either too short or too long to be accepted for processing by the Db2 IFI. The Db2 command cannot be less than 6 or greater than 4092 characters long.

51
There was not enough memory to build the output area for the Db2 IFI.
52
There was not enough memory to build the communications area for the Db2 IFI.
53
There was not enough memory to build the return area for the Db2 IFI.
54
The DB2_RC2 REXX variable could not be built.
55
The DB2_BNM REXX variable could not be built.
56
The DB2_OUTPUT.n REXX variable could not be built.
57
The DB2_OUTPUT.0 REXX variable could not be built.