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

2- 17
Execute and Terminate Options
The Execute and Terminate options (0, 1, or greater) allow you to specify the number of errors that can
occur before the SDMAIN program terminates. The default option is 0--execute and do not terminate,
regardless of the number of errors. Option 1 causes the system to terminate the program when the first
error is encountered. When any number greater than 1 is entered, the program terminates once this
number of errors is encountered.
Job Control Word (JCW)
The Job Control Word called JCW is a system parameter that indicates the termination condition of the
program. JCW is set by the system according to the condition under which the SDMAIN program is
terminated. The two possible settings for JCW are:
The Job Control Word allows a batch mode user to test for the termination condition and act accordingly.
The JCW is set to 32768 (FATAL) whenever the system must terminate before executing an EXIT
command. This can occur as a result of several conditions:
The number of errors encountered equaled or exceeded the number specified by the PARM value.
A fatal MPE file system error was encountered.
An SDMAIN system bug was discovered.
Running the SDMAIN Program
You can run the SDMAIN program in either session mode or batch mode. After logging on and defining the
files that you will be using, you are ready to run the System Dictionary Maintenance program in session
mode.
Session Mode
To run SDMAIN in session mode, enter the following MPE command:
RUN SDMAIN.PUB.SYS
Now press [[RETURN]]. SDMAIN responds with the banner, followed by a prompt character:
HP System Dictionary SDMAIN HP32256v.uu.ff - (C)Hewlett-Packard Co. 1985
SDMAIN Prompt Characters. SDMAIN uses both a command (single) prompt and a continuation
(double) prompt:
Once the command prompt (>) appears, SDMAIN is ready to receive commands. The only SDMAIN
commands that are allowed at this point are:
0 Program terminated normally with an EXIT command.
32768 Program terminated abnormally before an EXIT command.
> Command prompt. SDMAIN expects a command.
>> Command continuation prompt. SDMAIN expects a subcommand or a keyword clause to
complete the command.
COMMAND Makes a comment