3.8.1 Creating the Module Definition File

The module definition file for a virtual device has the following form:

LIBRARY VSAMPLED

DESCRIPTION 'VSAMPLED Device (Version 3.10)'

EXETYPE DEV386

SEGMENTS

_LTEXT PRELOAD NONDISCARDABLE

_LDATA PRELOAD NONDISCARDABLE

_ITEXT CLASS 'ICODE' DISCARDABLE

_IDATA CLASS 'ICODE' DISCARDABLE

_TEXT CLASS 'PCODE' NONDISCARDABLE

_DATA CLASS 'PCODE' NONDISCARDABLE

EXPORTS

VSAMPLED_DDB @1

The LIBRARY statement must specify the name of the virtual device, as given in the device description block (DBB) and the EXPORTS statement must specify the name of the DBB. In all cases, the export ordinal for the DDB is 1.