TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-88
Usage Considerations
subtype-number
specifies the process subtype number by which the object file is to identify itself to
other processes. Specify an unsigned decimal constant in the range 0 through 63.
The default process subtype is 0.
Usage Considerations
SUBTYPE can appear in the compilation command or anywhere in the source code. If
SUBTYPE appears more than once in a compilation, the compiler uses the subtype
number specified in the last SUBTYPE directive it encounters.
The compiler stores the specified process subtype in the object file header. At run time,
the system creates a process from the object file and assigns the saved process
subtype to the process.
NonStop defines the meaning and behavior of subtypes 1 through 47. Nonprivileged
subtypes you can use from this group are:
To allow a terminal simulation process to specify its own device type, you must specify
subtype 30 for the process. You can either specify SUBTYPE 30 at the beginning of
your program or use a Binder command after compilation.
You can define the meaning and behavior of subtypes 48 through 63 and then specify
them in SUBTYPE directives.
For more information on subtypes, see the
Guardian Programmer’s Guide.
Example of SUBTYPE Directive
This example shows a SUBTYPE 30 directive at the beginning of a terminal simulation
program:
!This is MYSOURCE file.
?SUBTYPE 30
!Global data declarations
SUPPRESS Directive
SUPPRESS overrides all the listing directives.
The default is NOSUPPRESS.
30 A device-simulating process
31 A spooler collector process