DOC creates and maintains documentation for variables. Documentation can then be displayed with the SHOW command.
DOC (ADD, REPLACE) <variable> 'description of variable';
Usage
List the name of a variable (it doesn't have to exist yet) and give a description for it in quotes. There is no restriction on the length of the description, and you can separate lines in the description with backslashes (\). Note that the semicolon character (;) cannot be part of the description string due to TSP's rules regarding strings (see BASIC RULES, Number 2). TSP automatically maintains a date field for the variable if it has a description, and the DATE option in SHOW and DBLIST is used to display this.
SHOW and DBLIST will display as much of the description as they can fit on one line, following the other information on the variable. SHOW (DATE,DOC) will print the description on separate lines following the regular information. The DBLIST command also has the DATE and DOC options. The documentation is stored in .TLB (databank) files, and DBCOPY can be used to move it to other computers.
Output
No output is produced until the SHOW or DBLIST commands are used.
ADD/NOADD specifies that the description should be added (appended) to any existing description.
REPLACE/NOREPLAC causes the description to replace any existing description.
DOC CONS72 'Consumption in 1972 dollars\Source: ERP 1990';
This is equivalent to
DOC CONS72 'Consumption in 1972 dollars';
DOC (ADD) CONS72 '\Source: ERP 1990';