Accessing DBMS Data with the LIBNAME Statement |
The examples in this section demonstrate how to use the LIBNAME statement to associate librefs with DBMS objects, such as tables and views. The LIBNAME statement is the recommended method for accessing DBMS data from within SAS.
These examples work with all SAS/ACCESS relational interfaces. Follow these steps to run these examples.
Modify and submit the ACCAUTO.SAS file, which creates the appropriate LIBNAME statements for each database.
Submit the ACCDATA.sas program to create the DBMS tables and SAS data sets that the sample code uses.
Note: Before you rerun an example that updates DBMS data, resubmit the ACCDATA.sas program to re-create the DBMS tables.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.