SAS Institute. The Power to Know

SAS/ACCESS(R) 9.2 for Relational Databases: Reference

space
Previous Page | Next Page

SAS Names and Support for DBMS Names

Renaming DBMS Data


Renaming SAS/ACCESS Tables

You can rename DBMS tables and views using the CHANGE statement, as shown in the following example:

proc datasets lib=x;
  change oldtable=newtable;
quit;

You can rename tables using this method for the following engines:

DB2 UNIX/PC Netezza
DB2 z/OS ODBC
HP Neoview OLE DB
Informix Oracle
Microsoft SQL Server Sybase
MySQL Teradata

Note:   If you change a table name, any view that depends on that table will no longer work unless the view references the new table name.  [cautionend]


Renaming SAS/ACCESS Columns

You can use the RENAME statement to rename the 8-character default SAS variable names to long DBMS column names when you load the data into a DBMS table. You can also use the SAS data set option RENAME= to rename the columns after they are loaded into the DBMS.


Renaming SAS/ACCESS Variables

You can use the RENAME statement to specify 8-character SAS variable names such as access descriptors and view descriptors.

space
Previous Page | Next Page | Top of Page