TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-9
ADD DEFINE Command
ADD DEFINE Command
Use the ADD DEFINE command to create one or more DEFINEs in the process file
segment (PFS) of the current TACL. For a description of DEFINEs, see Section 5,
Statements and Programs.
define-name
is the name to be assigned to the DEFINE created by this command. A DEFINE
name can be from 2 to 24 characters in length; the first character must be an equal
sign (=) and the second must be a letter. The name can contain alphanumeric
characters, hyphens (-), underscores (_), or circumflexes (^).
If you specify neither LIKE clause nor attribute-spec, you create one or more
DEFINEs with the attributes and values of the working attribute set.
LIKE define-name
creates a DEFINE identical to define-name but modified by attribute-spec (if
present). define-name is the name of an existing DEFINE.
attribute-spec
is one or more clauses where each clause specifies the name of a valid DEFINE
attribute and the value you want to associate with it in the new DEFINE. If you
include a LIKE clause, TACL creates a DEFINE with the attributes and values of
that define-name, modified by the content of attribute-spec. If you do not
include a LIKE clause, TACL creates a DEFINE with the attributes and values of
the working attribute set, modified by the content of attribute-spec.
See the SET DEFINE Command
on page 8-173 for descriptions of valid DEFINE
attributes.
Considerations
•
To modify the working attribute set before you create a DEFINE, use the SET
DEFINE command. To display the working attribute set or the attributes that are
currently set or defaulted, use the SHOW DEFINE command.
•
Attributes you set in an ADD DEFINE command (known as the ADD DEFINE
attribute set) do not become part of the working attribute set.
•
The ADD DEFINE command checks for consistency among the current attributes
(this includes attributes you set before entering the ADD DEFINE command, as
well as the ADD DEFINE attribute set). If the current attributes are incomplete or
inconsistent, an error occurs and no DEFINE is created. For example, if you enter
ADD DEFINE {define-name}
{define-name [, define-name ] ... )}
[ , LIKE define-name ] [ , attribute-spec ] ...