TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-107
#DEFINESETATTR Built-In Function
#DEFINESETATTR Built-In Function
Use #DEFINESETATTR to modify the value of an attribute in the working set.
#DEFINESETATTR can also be used to reset the value of an attribute to its default
value, if one exists, or to delete the attribute from the working set. This function invokes
the DEFINESETATTR operating system procedure.
attribute-name
is the name of the attribute to be set.
attribute-value
is the value to be assigned to the attribute. If you omit it, DEFINESETATTR resets
the attribute to its default value; if there is no default value, the procedure deletes
the attribute from the working set.
Result
#DEFINESETATTR returns a numeric error code indicating the outcome of the
DEFINESETATTR procedure; zero indicates success. See Appendix B, Error
Messages for a list of DEFINE-oriented error codes.
Considerations
If the value to be assigned is an unqualified file name, the DEFINESETATTR
procedure supplies the file-name qualification from the default volume information.
If the CLASS attribute is set, the working set is reinitialized with the attributes of the
new class and their default values (even if the CLASS attribute value is
unchanged).
Required attributes cannot be reset.
#DEFINESETATTR attribute-name [ attribute-value ]