COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-71
SAVE
count
is an unsigned integer in the range 1 through 100, an estimate of the
number of messages to be saved. The default is 19.
The compiler uses count to estimate process data-space requirements
for the saved ASSIGN messages. The saved ASSIGN messages are in the
data block #CRE_HEAP. If there is not enough space for all the ASSIGN
messages held by the command interpreter, the program terminates with a
run-time error message.
ALL
specifies that all messages are to be saved.
Whenever an HP COBOL program begins execution, its creator sends it a series of
initialization messages:
•
A startup message (always)
•
One PARAM message (if any parameters are active)
•
An ASSIGN message for each assignment active
You cannot directly manipulate saved messages as COBOL data items, but you can
use utility routines to retrieve and modify their contents (see Saved Message Utility
(SMU) Overview).
All combinations of SAVE options are legal, as are multiple SAVE directives.
Redundant options are ignored, except that the last-seen count overrides any previous
ones. The directive
SAVE ALL 17, ASSIGNS 10
is equivalent to
SAVE ALL, ASSIGNS 10
Default: The compiler does not save initialization messages.
Placement: Anywhere
Scope: Applies to the compilation unit
Dependencies: None










