Guardian Programmer's Guide

Table Of Contents
Using DEFINEs
Guardian Programmer’s Guide 421922-014
7 - 9
Attribute Values
Attribute Values
You can assign values to each attribute of a DEFINE using procedure calls.
Three kinds of attributes exist: defaulted, required, and optional. Defaulted attributes
are assigned a default value by the file system; this default value is used if you do not
assign another value to the attribute.
You must use procedure calls to assign values to required attributes. If you do not
assign a value to a required attribute, an error occurs when you attempt to add the
DEFINE to the context of a process (or if you check the consistency of the working set
using the DEFINEVALIDATEWORK procedure).
Optional attributes do not have default values and are not required.
Some attributes can be assigned a list of values, rather than a single value. A list of
values is specified as follows:
The attribute value you specify must be consistent. For example, some DEFINEs
include attributes that are mutually exclusive. The system checks attribute values for
consistency and completeness.
CLASS Attribute
All DEFINEs have one special attribute called the CLASS attribute. The CLASS
attribute specifies whether the DEFINE is a TAPE, TAPECATALOG, SPOOL, MAP,
SEARCH, SORT, SUBSORT, CATALOG, or DEFAULTS CLASS DEFINE.
filename The attribute can contain a file name. The file name can be fully or
partially qualified. A partially qualified file name is expanded by the file
system using the volume and subvolume that you specify as a
parameter to the DEFINESETATTR procedure.
subvolnam
e
The attribute can contain a subvolume name. The subvolume name
can be fully or partially qualified. A partially qualified subvolume name
is expanded by the file system using the volume that you specify as a
parameter to the DEFINESETATTR procedure. If no such volume is
specified, then the value provided by the =_DEFAULTS DEFINE is
used.
volname The attribute can contain a volume name, which can be fully or
partially qualified. A partially qualified volume name is expanded by
the file system using the node name specified in the =_DEFAULTS
DEFINE.
keyword The attribute can contain one of a predefined set of keywords. These
keywords are specific to the particular DEFINE class such as SPOOL
or TAPE.
(value1,value2[,value3] ... [,valuen])