How do we link-edit a Datacom user program that calls DSF in 31-bit mode?
If you are executing your DSF-calling program with IPC VPE 14.0 or later, then you can link edit as AMODE 31 and/or RMODE ANY. Any of the control blocks passed to DSF (User Request Area, Standard and Extended Receiving areas, and Service List) can reside in 31-bit memory. If your program is linked as AMODE 24, most of the DSF code and internal control blocks still reside in 31-bit memory.
INCLUDE objlib(usercode)
INCLUDE CAVPE(VPE986x)
INCLUDE CADD(DDDDBLM)
NAME userprogram(R)
objlib
Specifies the name of your object library.
usercode
Specifies the member name of the object module obtained by the compilation or assembly of your code.
CAVPE
Refers to the SMP/E target or distribution library for VPE, a component of IPC. If you want to have all applied maintenance, both accepted and not accepted, CAVPE should point to the SMP/E target library. If you want to include only accepted maintenance, in your link-edited executable, then CAVPE should point to the distribution library.
Include the appropriate CA IPC bootstrap:
INCLUDE CAVPE(VPE9865) for 31-bit mode
INCLUDE CAVPE(VPE9864) for 24-bit mode
CADD
Refers to the SMP/E target or distribution library for Datacom Datadictionary, component of Datacom/DB and Datacom/AD.
userprogram
Specifies the name of your program.
Refer to documentation section “Program Link-Edit and Execution” for more details about this process.