HP System Dictionary/XL COBOL Definition Extractor (32257-90001)
1-11
1 Running the SDCDE Program
Running SDCDE
The SDCDE program is located in the file SDCDE.PUB.SYS. You can load and run the SDCDE program by
issuing the command:
RUN SDCDE.PUB.SYS
You do not need to specify any file equations. If the program loads successfully, SDCDE prints out the
following banner:
HP System Dictionary SDCDE HP32257v.uu.ff - (C)Hewlett-Packard Co. 1985
SDCDE Files
The SDCDE program uses an input file and a log file. These two files are discussed below.
The Input File
SDCDE accepts input from the file, SDIN. SDCDE can also take input from another MPE file if you
redirect SDIN with an MPE file equation prior to issuing the RUN command:
:FILE SDIN=
input file
If SDIN does not exist, or has not been redirected to another file, $STDINX (or your terminal) is used as
the input file.
The Log File
When SDCDE is executed, all valid commands are logged to the log file with the formal file designator,
SDLOG. This enables you to save the commands and use them at a later date.
The REDO command and any invalid commands are not logged. However, commands edited and executed
through the REDO command are logged. Any responses to prompts (either valid or invalid) that appear
only in session mode are omitted from the log file, for example, the prompt that asks permission to
overwrite SDLOG.
When you run SDCDE in session mode, if SDLOG already exists, SDCDE asks for permission to overwrite
the old log file. If the response is negative, logging is disabled. On the other hand, in batch mode, SDLOG
is automatically overwritten. If no old log file is found and no file equation for SDLOG is found, SDCDE
creates the file. This file is temporary, however, and must be saved to become a permanent file. If SDLOG
is new, you receive a message telling you to save the file upon termination of the program.
You can save and rename the log file and then use it as the input file (SDIN) the next time you run
SDCDE.
SDCDE Run Options
When you run SDCDE, you can specify one of several run options through the use of the PARM parameter
of the RUN command. This parameter allows you to control SDCDE's error handling. Using this
parameter, you can specify the exact number of errors at which the program aborts. If, for example, two
errors are acceptable, but more than two errors are not, then specify the number 3 on the PARM
parameter. An example of the RUN command with the PARM parameter appears below:
RUN SDCDE.PUB.SYS; PARM=3