When you create a view descriptor for an existing access descriptor, you must use
the ACCDESC= option with the ACCESS procedure.
When you create view descriptors and access descriptors in the same procedure execution,
you must place
the statements or groups of statements in the following order:
-
You must create an access descriptor before creating a view descriptor based on that
access descriptor.
-
You should omit the RUN statement from the access descriptor specification.
-
Any database-description statements, such as PASSWORD, must precede the editing statements.
-
Among the editing statements, RENAME, CONTENT, FORMAT, and INFORMAT can be specified
only when ASSIGN=NO is specified in the access descriptor referenced by the view descriptor.
The order of the statements within this group usually does not matter; see the individual
statement descriptions for any restrictions.
-
The RUN statement is
used to signal the end of the ACCESS procedure.
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.
If no errors are found,
each descriptor is saved when a new descriptor is created or when
the RUN statement is processed. If errors are found, error messages
are written to the SAS log and processing is terminated. After you
correct the errors, resubmit your statements.