COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
save-option
PARAM
specifies that the PARAM message is to be saved.
STARTUP
specifies that the startup message is to be saved.
ASSIGNS
specifies that all ASSIGN messages are to be saved.
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.
The compiler does not save initialization messages.Default:
AnywherePlacement:
Applies to the compilation unitScope:
NoneDependencies:
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 (page 612)).
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
564 Program Compilation










