HP System Dictionary/XL COBOL Definition Extractor (32257-90001)

1-12
Three sets of values are accepted for the run option:
|
NOTE
When the program aborts due to too many errors, an error message is issued, and the
program sets the system Job Control Word (JCW) to a value greater than or equal to
FATAL.
Error Handling
SDCDE recognizes four different categories of errors. SDCDE responds to these errors in different ways,
depending upon the category. The four SDCDE error categories are described below.
Syntax errors are errors caused either by mistyping a command or by specifying an illegal command
construction. When these errors are detected, a caret pointer is displayed pointing to the location of the
error, along with an error message.
Operational warnings are errors that can occur only during source generation, but are not considered to
be serious enough to require termination of the process. When such an error occurs, a warning message is
issued and source generation continues.
Operational errors are caused by commands that cannot start or continue execution, due to an invalid
operation. For example, issuing the GENERATE command when no dictionary is open is an operational
error. Another example occurs when an error is encountered during source generation that is considered
serious enough to terminate the process. An error message is displayed in response to these errors.
Fatal errors are usually disc-related errors over which the program has very little or no control. When
such an error is detected, the program is terminated. Failure to open $STDINX is such an error. When a
fatal error is detected by the system, the Job Control Word (JCW) is assigned a value greater than or equal
to FATAL.
Control Y Handling
You can issue a [[CONTROL]] Y at any time during the operation of SDCDE to return to the command
prompt (>). When you issue [[CONTROL]] Y, SDCDE displays:
< Control Y >
Session Mode vs. Batch Mode You can run SDCDE in either session mode or in batch mode. Some
differences exist, however, between the two modes. When running in batch mode, both [[CONTROL]] Y
and the REDO command are disabled. Also note that, in batch mode, any old SDLOG file is automatically
overwritten. No confirmation prompt is issued. When running in session mode, any run option other than 0
or -1 is ignored.
-1 Parse-only option. Only command syntax is checked. No dictionary or copy library is opened.
0 Execute and do not terminate regardless of the number of errors. Program continues until an
EXIT command is issued. All errors are reported, but non-fatal errors do not terminate the pro-
gram. This is the default option.
n Terminate when n errors are detected. Syntactical, operational, and illegal response errors are
counted. If a fatal error is encountered, the program may abort before the error count is
reached. Positive parm values are not recognized in session mode.