You can create view descriptors and access descriptors
in the same execution of the ACCESS procedure or in separate executions.
To create a view descriptor
and the access descriptor on which it is based within the
same PROC ACCESS execution, you must place the
statements or groups of statements in a particular order after the
PROC ACCESS statement and its options, as listed below:
-
Create the access descriptor
except omit the RUN statement.
-
CREATE statement for
the view descriptor: this statement must follow the PROC ACCESS statements
that created the access descriptor.
-
NSS and the password
and cipher code parameters of ADBFILE, SECFILE, and SYSFILE: the ADBFILE,
SECFILE, and SYSFILE statements can be specified only when SECURITY=NO
or when SECURITY=YES and no values have been specified in the access
descriptor referenced by this view descriptor.
-
Editing statements:
SELECT and SUBSET are used only when creating view descriptors. CONTENT,
FORMAT, INFORMAT, KEY, and MVF OCCURS can be specified only when ASSIGN=NO
is specified in the access descriptor referenced by this view descriptor.
QUIT is also an editing statement, but using it terminates PROC ACCESS
without creating your descriptor.
The order of the statements
within this group usually does not matter; see the individual statement
descriptions for any restrictions.
-
RUN statement: this
statement is used to process the ACCESS procedure.
To create a view descriptor
based on an access descriptor that was created in a
separate PROC ACCESS step, you specify the access
descriptor's name in the ACCDESC= option in the new PROC ACCESS statement.
You must specify the CREATE statement before any of the editing statements
for the view descriptor.
If you create only one
descriptor in a PROC step, the CREATE statement and its accompanying
statements are checked for errors when you submit PROC ACCESS for
processing. If you create multiple descriptors in the same PROC step,
each CREATE statement (and its accompanying statements) is checked
for errors as it is processed.
When the RUN statement
is processed, all descriptors are saved. If no errors are found,
the descriptor is saved. If errors are found, error messages are
written to the SAS log, and processing is terminated. After you correct
the errors, resubmit your statements.