Previous Page | Next Page

The ACCESS Procedure for Relational Databases

UNIQUE Statement


Generates SAS variable names based on DBMS column names
Applies to: view descriptor
Interaction: ASSIGN

UNIQUE <=> YES | NO | Y | N;

YES

causes the SAS/ACCESS interface to append numbers to any duplicate SAS variable names, thus making each variable name unique.

NO

causes the SAS/ACCESS interface to continue to allow duplicate SAS variable names to exist. You must resolve these duplicate names before saving (and thereby creating) the view descriptor.


Details

The UNIQUE statement specifies whether the SAS/ACCESS interface should generate unique SAS variable names for DBMS columns for which SAS variable names have not been entered.

The UNIQUE statement is affected by whether you specified the ASSIGN statement when you created the access descriptor on which the view is based:

If duplicate SAS variable names exist in the access descriptor on which you are creating a view descriptor, you can specify UNIQUE to resolve the duplication.

It is recommended that you use the UNIQUE statement and specify UNIQUE=YES. If you omit the UNIQUE statement or specify UNIQUE=NO and SAS encounters duplicate SAS variable names in a view descriptor, your job fails.

The equal sign (=) is optional in the UNIQUE statement.

Previous Page | Next Page | Top of Page