TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-104
#DEFINESAVE Built-In Function
#DEFINESAVE Built-In Function
Use #DEFINESAVE to save a copy of an active DEFINE, or the working set, for later
restoration by #DEFINERESTORE.
WORK
specifies that the working set is to be saved with the specified DEFINE name. If
you omit this option, the DEFINE with the specified name is saved.
define-name
is the name of the DEFINE to be saved.
buffer
is the name of a STRUCT that is to receive a copy of the DEFINE. The definition of
the STRUCT, except for its length, is irrelevant.
Result
#DEFINESAVE returns a numeric error code, a space, and the number of bytes
required to save the DEFINE. The error codes are:
If the error code is any of the above except zero, the DEFINE is not saved.
These codes are warnings only, and are used only when the working set is being
saved; it is saved even if one of the following appears.
#DEFINESAVE [ / WORK / ] define-name buffer
Code Condition
0 No error
2049 Invalid DEFINE name
2051 DEFINE does not exist
2052 Unable to obtain file system buffer space
2053 Unable to obtain physical memory
2054 Bounds error on buffer, DEFINE, or saved length
2066 Parameter missing
2076 Buffer too small
2077 Buffer or DEFINE is in invalid segment
Code Condition
2057 Working set is incomplete.
2058 Working set is inconsistent.
2059 Working set is invalid.