Figure 5-13 Checking Completion Codes - HP TACL Programming Manual

Tandem advanced command language
Table of Contents

Advertisement

If you incur a syntax error while trying to start a process, TACL sets MESSAGECODE
to 0, COMPLETIONCODE to 4, and TERMINATIONINFO to 0.
If a NEWPROCESS failure occurs while you are trying to start a process, TACL sets
MESSAGECODE to 0, COMPLETIONCODE to 4, and TERMINATIONINFO to the
NEWPROCESS error code.
If you successfully start a process, TACL sets MESSAGECODE to 0,
COMPLETIONCODE to 0, and TERMINATIONINFO to 0.
When a process terminates (STOP or ABEND), the system message is put into
:_COMPLETION.
An interactive TACL displays completion code information whenever one or more of
the following are true:
PMSG is ON.
MESSAGECODE is -5 (STOP) and COMPLETIONCODE is not 0 and not 6
(stopped externally).
MESSAGECODE is -6 and COMPLETIONCODE is not 5 and not 6 (stopped
externally).
TERMINATIONINFO is not 0 and COMPLETIONCODE is not 6 (stopped
externally).
TEXTLENGTH is not 0.
For more information about MESSAGECODE and other definitions, see the System
Procedure Calls Manual.
The display shows only those numeric fields that are nonzero, and displays the
amount of TEXT indicated by TEXTLENGTH.
Use the macro in Figure 5-13, sqlcomp, to perform preparation, COBOL85, and SQL
compile steps for a COBOL85 program called SRCFILE. The syntax is:
sqlcomp
Figure 5-13. Checking Completion Codes (Page 1 of 2)
?SECTION sqlcomp ROUTINE
#FRAME
== Purge files from the previous compilation
FUP PURGE CBLFL, SQLFL!
== Run the preprocessor as a waited process
SQLCOBOL /name,CPU 3, PRI 140, IN SRCFILE, OUT $S.#PM/CBLFL,
SQLFL
107365 Tandem Computers Incorporated
Initiating and Communicating With Processes
Processing NetBatch Jobs and Completion Codes
5–33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents