Guardian Programmer's Guide

Table Of Contents
Using the Sequential Input/Output Procedures
Guardian Programmer’s Guide 421922-014
15 - 12
Using the INITIALIZER Procedure
Using the INITIALIZER Procedure
The INITIALIZER procedure sets up the SIO FCBs using information from the RUCB
and messages read from the $RECEIVE file as shown in Figure 15-2.
The actions of the INITIALIZER procedure are summarized as follows:
1. Reads the RUCB to establish the location of the common FCB (immediately after
the RUCB) and the number of FCBs that it will access. (For native callers, the
number of FCBs and an array of pointers to the FCBs are passed to INITIALIZER
as input parameters.) INITIALIZER verifies the number of FCBs. If the number of
FCBs specified when allocating the RUCB and the common FCB, or the number of
FCBs specified in the num^fcbs parameter, does not match the number of FCBs
actually allocated in the program, the process abends.
Figure 15-2. The INITIALIZER Process
VST070.VSD
Inititalizer
Common
FCB
RUCB
Common FCB
Number of File
FCBs
Startup Message
Input File Name
Output File Name
Default Values
Assign Message
Logical File Name
Access Mode
Assign Message
Logical File Name
Block Length
FCB
FCB
FCB