SYMTAB prints the TSP symbol table, showing the characteristics of all the variables in a TSP program. It is useful primarily to programmers for debugging TSP programs. Others may prefer the SHOW command, which does not print out information on program variables.
SYMTAB ;
Usage
SYMTAB can be used anywhere in the program; it will print out the names, locations, types, lengths, and file pointers for all the variables used up to that point in the program. A description of the table is given in the output section below.
Output
The symbol table printout has 6 items for each variable:
Variable name - you will see all the variables you have created, as well as all the @ variables which contain results of procedures. In addition, there are a large number of variables which begin L 0001, or F 0001, and so forth. These variables are the TSP program lines and the equations which are created by the GENR and SET commands.
Location - this is the address of the variable in the upper end of blank common in single precision words.
Type - this is the variable type. Legal types are the following:
|
type |
description |
|
1 |
scalar or constant |
|
2 |
double precision (time) series (see OPTIONS DOUBLE) |
|
3 |
(time) series |
|
4 |
parameter |
|
6 |
equation (output of FRML command) |
|
7 |
identity (output of IDENT command) |
|
8 |
model (output of MODEL command) |
|
9 |
text string (for FILE=, FORMAT= , and TITLE) |
|
10 |
|
|
11 |
general matrix |
|
12 |
symmetric matrix |
|
13 |
triangular matrix |
|
14 |
diagonal matrix |
|
20 |
variable name list |
Length - this is the length of the variable in single precision words. The length includes two extra items for time series and matrices which hold dating and dimension information.
LDOC - length of documentation, if any (see the DOC command).
DB - a flag for storage on the current OUT databank(s).
Placement of the SYMTAB command at the end of the run will cause all the variables of the run to be printed out:
NAME USER ;
. ..
TSP program statements
. ...
SYMTAB ; ? causes information on all variables used in the program to be displayed.
END ;
. ..
TSP data section
...
END ;