GDSX (Extended General Device Support) Manual
Design and Development
Extended General Device Support (GDSX) Manual—529931-001
2-18
User Code Declarations
block can be referenced and updated by both TSCODE and USCODE, while global
data within the user^private data block can be referenced and updated only by
USCODE tasks.
In all GDSX applications, user code must source in the three sections of the
DCCBDECS file listed on the first line of Table 2-1. These sections define the IOCB,
TCB, and FCB control structures shared by TSCODE and USCODE. A listing of
DCCBDECS is contained in Appendix C, DCCBDECS and ULHDECSE Listings.
Depending on application requirements, user code may source in the section of the
DCCBDECS file listed on the second line of the table. This section defines the RCB
control structure.
Depending on application requirements, user code may source in the
getreceiveinfo^template section of the ULHDECS, ULHDECSE, or USKELDEC
installed subvolume files. This structure may be useful if you are calling
^FILE_GETRECEIVEINFO_.
User code must source in the DCB and LCB control structures. The standard
declarations for these structures can be sourced in from the templates section of either
DCCBDECS or USKELDEC, an installed subvolume file that contains these two
structures. However, you may want to add some DEFINEs for the structures or modify
the standard template for a device control block. (The DCB can be modified to add
Table 2-1. Global Declarations Sourced in by User Code
Description of Contents File Name Sections of File
Control block template definitions DCCBDECS,
DCCBDEC2
IOCB^LAYOUT, TCB^LAYOUT,
FCB^LAYOUT
Control block template definitions DCCBDECS,
DCCBDEC2
RCB^LAYOUT
Standard or user-modified Device
and Line control block template
definitions
DCCBDECS,
DCCBDEC2,
USKELDEC, or
ULHDECS
TEMPLATES
Structure used for calling
^FILE_GETRECEIVEINFO_
USKELDEC,
ULHDECS, or
ULHDECSE
GETRECEIVEINFO^TEMPLATE
Configuration template definition DCCBDECS,
DCCBDEC2
CONFIG^TEMPLATES
Configuration template allocation DCCBDECS,
DCCBDEC2
CONFIG^DATA
DEFINEs; literals; various globals
allocated
DCCBDECS,
DCCBDEC2
COMMON^DATA, ERRORS
External procedure declarations EXTDECS0 DEBUG, NUMOUT, NUMIN
External procedure declarations for
TSCODE routines
PEXTGDS,
PEXTGDS2
(Entire file used)