next up previous contents
Next: Modifying Control Block Variables Up: S File Previous: S File

Description of Control Block Variables

The SPA program is simply a user interface to the data file, known for historical reasons as the S file. The SPA program simply modifies and manipulates data contained within the S file or values within several control blocks which perform all of the necessary bookkeeping associated with the program. These control blocks are initialized with the SPI program (see Chapter 2) when the data file is created. Table 3-1 describes the location within the data file and contents as given by FORTRAN include files of these control blocks. At the startup of the program, these records are read into memory and the values are frequently scanned with the processing of each function.

Table 3-1
BlockStarting RecordLength
STORAGE COMMON11
CODES COMMON21
DEFAULT FUNCTION CONSTANTS31
FUNCTION CONSTANTS C141
FUNCTION CONSTANTS C251
FUNCTION CONSTANTS C361
FUNCTION CONSTANTS C471
FUNCTION CONSTANTS C581
SYNTHETIC FUNCTIONS92
STACK ARRAY111
SSCAN ARRAY 124
DISK FILE ROOT DIRECTORY161
DISK FILE DIRECTORY INDEX171
TAPE ROOT DIRECTORY181
TAPE DIRECTORY INDEX191
FREE SPACE 2021

Several of these blocks are frequently modified by the SPA program. For example, when the user has loaded the C1 function constants and queries a function to modify a function constant, then this change is stored on disk at the completion of processing the command line.

In general, the values of these control blocks are inaccessible to the user while running the program. To see the present state of an S file, one must run the spi program and answer yes to the question DO YOU WISH TO MAKE A DIAGNOSTIC DUMP OF THE S FILE? and no to all remaining questions. The spi program will produce a file written to logical unit 10 or in the case of the UNIX version, SDUMP.LIS. SDUMP.LIS is an ascii file which can be read from a terminal. It includes both decimal and hexidecimal output of each record in the S file.


next up previous contents
Next: Modifying Control Block Variables Up: S File Previous: S File

World Wide Web admin account
Tue May 14 18:00:20 EDT 1996