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.

902 RESET Statement 4 Appendix 1If the column name contains lowercase characters, special characters, or nationalcharacters, enclose the name in quotation marks. The equal sign (=) is optional.<strong>SAS</strong>-variable-namespecifies a <strong>SAS</strong> variable name.DetailsThe RENAME statement sets or modifies the <strong>SAS</strong> variable name that is associatedwith a DBMS column.Two factors affect the use of the RENAME statement: whether you specify theASSIGN statement when you are creating an access descriptor, and the type ofdescriptor you are creating.3 If you omit the ASSIGN statement or specify it with a NO value, the renamed <strong>SAS</strong>variable names that you specify in the access descriptor are retained when an<strong>ACCESS</strong> procedure executes. For example, if you rename the CUSTOMER columnto CUSTNUM when you create an access descriptor, the column is still namedCUSTNUM when you select it in a view descriptor unless you specify anotherRESET or RENAME statement.When you create a view descriptor that is based on this access descriptor, youcan specify the RESET statement or another RENAME statement to rename thevariable. However, the new name applies only in that view. When you create otherview descriptors, the <strong>SAS</strong> variable names are derived from the access descriptor.3 If you specify the YES value in the ASSIGN statement, you can use the RENAMEstatement to change <strong>SAS</strong> variable names only while creating an access descriptor.As described earlier in the ASSIGN statement, <strong>SAS</strong> variable names and <strong>for</strong>matsthat are saved in an access descriptor are always used when creating viewdescriptors that are based on the access descriptor.For example, to rename the <strong>SAS</strong> variable names that are associated with the seventhcolumn and the nine-character FIRSTNAME column in a descriptor, submit thisstatement:rename7 birthdy ’firstname’=fname;When you are creating a view descriptor, the RENAME statement automaticallyselects the renamed column <strong>for</strong> the view. That is, if you rename the <strong>SAS</strong> variableassociated with a DBMS column, you do not have to issue a SELECT statement <strong>for</strong> thatcolumn.RESET StatementResets DBMS columns to their default settingsApplies to:Interaction:access descriptor or view descriptorASSIGN, DROP, FORMAT, RENAME, SELECTRESET ALL |column-identifier-1 ;

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

Saved successfully!

Ooh no, something went wrong!