Using the API in the VM Environment

The API for VM consists of several re-locatable modules in OS load libraries. It can be used only when your Virtual Machine is in XA or XC mode. To create an API application, compile the application in the usual manner, and then use the OS linkage editor to link-edit the application as follows:

Global txtlib sceelked
FILEDEF EDAAPI DISK FOCLIB LOADLIB * (RECFM U
FILEDEF EDAAPC DISK your_program TEXT *
FILEDEF SYSLIN DISK LKAPI CNTL A
FILEDEF SYSLMOD DISK EDAAPP LOADLIB A (CHANGE
LKED your_program (LIST NCAL

The LKAPI CNTL control statements are as follows:

INCLUDE EDAAPC
INCLUDE EDAAPI (EDAUSRO)
MODE AMODE (31), RMODE (ANY)
NAME your_program (R)

When executing your API application, the EDA load library and your application load library must be available at run-time. If your application load library is called EDAAPP LOADLIB as shown above, issue the following global statement:

GLOBAL LOADLIB FOCLIB FOCINT EDAAPP SCEE RUN

iWay Software