DIMOD (Device-Independent I/O Module Definition) Macro

The DIMOD macro defines a logic module for a device-independent file.

If you do not provide a name for the module, IOCS generates a standard module name.

For DASD devices and for PRT1 and 3800 printers, a user-supplied logic module is not required. If one is supplied, it is ignored. OPEN always provides linkage to an IBM-supplied logic module which resides in the SVA.

Format

Read syntax diagramSkip visual syntax diagramnameDIMODIOAREA2=YES,RDONLY=YES,SEPASMB=YES,TRC=YES,TYPEFLE=OUTPUTINPUT

Requirements for the caller

AMODE:
24
RMODE:
24
ASC Mode:
Primary

Parameters

IOAREA2=YES
Include this operand if a second I/O area is needed. A module with this operand can be used with DTFDI specifying either one or two I/O areas. If the operand is omitted or is invalid, one I/O area is assumed.
RDONLY=YES
This operand causes a read-only module to be generated. Whenever this operand is specified, any DTF used with the module must have the same operand.
SEPASMB=YES
Include this operand only if the module is to be assembled separately. This produces an object module ready to be cataloged into a suitable sublibrary either by the standard name or by the user-specified name. The module name is used as the module's transfer address. If you omit this operand, the assembler assumes that the module is assembled together with the DTF in your program.
TRC=YES
Include this operand to specify whether the module is to test the table reference character indicator in the DTFDI or ignore that indicator. If TRC=YES is specified, the generated module can process output files with table reference characters and those without. If the TRC operand is specified, TYPEFLE=INPUT must not be specified.
TYPEFLE=OUTPUT | INPUT
Include this operand to specify whether the module is to process input or output files. If OUTPUT is specified, the generated module can process both input and output files.