XAPLFUNC reference

Db2 uses function codes to call the RACF access control module.

The following table shows the purpose and timing of each function call.
Table 1. XAPLFUNC codes and corresponding functions
Function code Time of call Purpose
XAPLFUNC=1 Db2 initialization Create in-storage profiles and indicate what action Db2 must take if the RACF access control module abends or fails to initialize.
XAPLFUNC=2 Db2 authorization Check Db2 objects and authorities.
XAPLFUNC=3 Db2 termination Delete in-storage profiles.

Unsupported function codes: If the RACF access control module receives a XAPLFUNC function code other than 1, 2 or 3, the RACF access control module sends a return code of 12 to the caller.

When a return code of 12 is received:

  • Native Db2 authorization is used if &ERROROPT 1 or the level of Db2 is below DB2® version 7.
  • The Db2 subsystem stops if &ERROROPT 2 and the level of Db2 is DB2 version 7 or later.