Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
5-3
DEFINEADD
Adds a DEFINE to the calling process’s context using the attributes in the working set.
DEFINEADD can replace an existing DEFINE with the attributes in the working set.
error := DEFINEADD ( define-name
,[ replace ]
,[ checknum ] );
error, INT returned value
0 Add was successful.
2049 A syntax error occurred in name.
2050 Define already exists.
2051 Define does not exist.
2052 Unable to obtain file-system buffer space.
2053 Unable to obtain physical memory.
2054 Bounds error in define-name.
2057 Working set is not complete.
2058 Working set is not consistent.
2059 Working set is invalid.
2066 Missing parameter.
2069 The DEFMODE of the process does not permit the addition of the DEFINE.
define-name, STRING .EXT:ref:24 input
replace, INT:value input
checknum, INT:ref:1 output
001 Specify either RETENTION or EXPIRATION, not both.
002 If you specify USE IN or EXTEND, you must include LABELS ANSI,
VOLUMES.
003 If you specify VOLUME, you must also specify LABELS ANSI, LABELS IBM,
or LABELS IBMBACKUP. If you specify one of these LABELS, you must also
specify VOLUME.
004 If you specify LABELS ANSI, you must not specify LABELS EBCDIC, and vice
versa.
005 If you specify RECFORM F, then you must specify a BLOCKLEN that is a
multiple of RECLEN.