mainly that reason code comes when a XPLINK c++ tries to call a non xplink module or amode 31 load. Here i think that problem is coming because after the sql statememts, it will expand and call DSNHLI service. And thius standard service is of amode 31...
So are there any additional parameters to i have to concern? or any pragma linkage parameter to enable call to DSNHLI?/?
no need to explain the error ( I can read the manuals )
did You try to google with ( for example )
"xplink calling amode 31"
or look at the relevant IBM manuals ( always for example )
LE Programming Guide (SA22-7561) has a chapter on developing XPLink applications.
LE Programming Guide for 64-bit (SA22-7569)
LE Vendor Interfaces (SA22-7568) has new detailed description, new CWIs, and "all" 3 LE-conforming linkages:
-Standard LE linkage (includes COBOL, PL/I, etc)
LE Writing Interlanguage Communication Applications (SA22-7563)
LE Debugging Guide (GA22-7560)