Guardian Procedure Calls Reference Manual

Considerations
To obtain the name of the very first DEFINE in the process context, define-name must be
blanks.
On output, define-name is either a valid existing DEFINE (on success) or is unchanged (on
failure).
Example
In the following example, DEFINENEXTNAME returns "=my^output", which directly follows
"=my^input" in ASCII order. These DEFINEs were created previously.
STRING .file^name [0:36];
file^name ':=' ["=my^input"];
error := DEFINENEXTNAME( file^name );
IF error <> DEOK THEN ...
DEFINENEXTNAME Procedure 273