HP System Dictionary/XL SDMAIN Reference Manual (32256-90001)

2- 13
2 Running the SDMAIN Program
Overview
System Dictionary provides a Dictionary Maintenance program called SDMAIN to create, maintain, and
report entries in the dictionary. This chapter explains how to run SDMAIN, define files and file equations
used in conjunction with the program, and how to define SDMAIN's run options.
To use System Dictionary and run the SDMAIN program, System Dictionary must already be installed on
your system andadictionary initialized. Initialization procedures are describedinPart1 of the HP System
Dictionary/XL General Reference Manual Volume 2. If HP System Dictionary is not already installed on
your system, see your System Manager.
Defining Input, Log, Macro, and Output Files
The first step in using the dictionary is to define the files that you use.
SDMAIN uses the following formal file designators:
SDIN = the input file
SDLOG = the log file
SDMACR= the macro file
SDOUT = the output file
SDMAIN opens all the files with file equates allowed. You can, therefore, redirect the SDMAIN files to
your own files, if you wish, by means of MPE file equations.
The Input File (SDIN)
SDMAIN accepts input from the file SDIN. The default for SDIN is $STDINX, or your terminal (for
sessions). This means that input is accepted from the terminal unless otherwise specified. You can,
however, redirect the input to another file. This causes SDMAIN to accept the input from the specified file.
The file must be an unnumbered file with a record length of 80 bytes or less (if over 80 bytes, SDMAIN
reads only the first 80 and ignores the remainder). Note that if the specified input file does not include an
EXIT command, SDMAIN is redirected to accept input from $STDINX when the end of file is reached.
Redirecting the Input File. If you would like input to come from a file other than SDIN (or $STDINX,
your terminal), you can redirect the input to a file of your own choosing. In order to redirect SDIN, enter
the following MPE file equation prior to the RUN command:
:FILE SDIN =
command file name
After entering this command, the next time you run SDMAIN, input is accepted from command file name.
See the examples following "Redirecting the Log File" for an example.
The Log File (SDLOG)
When you execute SDMAIN, all valid commands are added, or logged, to a temporary log file called
SDLOG. Valid commands are those that do not contain any syntax errors.
Examples of types of commands that are not logged are: