13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The <strong>ACCESS</strong> Procedure <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 SELECT Statement 903ALLresets all columns in an access descriptor to their default names and <strong>for</strong>mats andreselects any dropped columns. ALL deselects all columns in a view descriptor sothat no columns are selected <strong>for</strong> the view.column-identifiercan be either the DBMS column name or the positional equivalent from the LISTstatement, which is the number that represents the column’s place in the accessdescriptor. If the column name contains lowercase characters, special characters, ornational characters, enclose the name in quotation marks. For example, to reset the<strong>SAS</strong> variable name and <strong>for</strong>mat associated with the third column, submit thisstatement:reset3;For access descriptors, the specified column is reset to its default name and <strong>for</strong>matsettings. For view descriptors, the specified column is no longer selected <strong>for</strong> the view.DetailsThe RESET statement resets column attributes to their default values. Thisstatement has different effects on access and view descriptors.For access descriptors, the RESET statement resets the specified column names tothe default names that are generated by the <strong>ACCESS</strong> procedure. The RESET statementalso changes the current <strong>SAS</strong> variable <strong>for</strong>mat to the default <strong>SAS</strong> <strong>for</strong>mat. Any previouslydropped columns that are specified in the RESET statement become available.When creating an access descriptor, if you omit the ASSIGN statement or set it to NO,the default <strong>SAS</strong> variable names are blanks. If you set ASSIGN=YES, default names arethe first eight characters of each DBMS column name.For view descriptors, the RESET statement clears (deselects) any columns that wereincluded in the SELECT statement. When you create a view descriptor that is based onan access descriptor that is created without an ASSIGN statement or withASSIGN=NO, resetting and then reselecting (within the same procedure execution) a<strong>SAS</strong> variable changes the <strong>SAS</strong> variable names and <strong>for</strong>mats to their default values.When you create a view descriptor that is based on an access descriptor created withASSIGN=YES, the RESET statement does not have this effect.SELECT StatementSelects DBMS columns <strong>for</strong> the view descriptorApplies to:Interaction:view descriptorRESETSELECT ALL |column-identifier-1 ;ALLincludes in the view descriptor all columns that were defined in the access descriptorand that were not dropped.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!