Chapter Contents |
Previous |
Next |
CREATE |
Required statement | |
Applies to: | access descriptor or view descriptor |
Syntax | |
Details | |
Access descriptors | |
View descriptors |
Syntax |
CREATE libref.member-name.ACCESS | VIEW; |
Details |
The CREATE statement identifies the access descriptor or view descriptor that you want to create. This statement is required for creating a descriptor file.
To create a descriptor, use a three-level name. The first level identifies the libref of the SAS data library where you will store the descriptor. You can store the descriptor in a temporary (WORK) or permanent SAS data library. The second level is the descriptor's name. The third level is the type of SAS file: specify ACCESS for an access descriptor or VIEW for a view descriptor.
You can use the CREATE statement as many times as necessary
in one procedure execution. That is, you can create multiple access descriptors
and view descriptors based on those access descriptors, within the same execution
of the ACCESS procedure. Or, you can create access descriptors and view descriptors
in separate executions of the procedure.
Information from database-description statements is
stored in the access descriptor; therefore, you do not need to repeat this
information when you create view descriptors. However, if no security values
were entered in the access descriptor, then you can use the database-description
statements in a view descriptor to supply them.
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:
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.
For examples of how to create access descriptors and view descriptors, see Defining SAS/ACCESS Descriptor Files.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.