Chapter Contents |
Previous |
Next |
SAS SQL Query Window User's Guide |
For access modes other than SAS, the individual database management system (DBMS) tables are queried for the Available Tables and Available Columns lists. For DB2, DB2/2, DB2/6000, SYBASE, and ODBC, the system tables information that fills the Available Tables and Available Columns can now be stored in SAS data sets. One data set contains Tables information. The other data set contains Columns information. When you use a remote session for querying, these SAS data sets can be stored locally for enhanced performance.
If you have read authority to the system tables, you can assign the DB2, DB2/2, or DB2/6000 system tables to be read to SAS tables that are mirror images of the DB2 tables. If you are executing a remote session, you can specify whether these SAS DB2 system tables are to be read locally or remotely.
You can create these mirror image tables by querying the DB2 system tables in a Query window session and creating SAS tables of the queries built. They can also be created with a PROC SQL program that queries the DB2 system tables. The PROC SQL statements can be saved and the SAS program can be run in batch whenever you need to update the mirror image tables.
SAS tables (data sets) created by automatic joins can also be created for any of the access modes that provide system tables/dictionaries with a PROC SQL program.
For ODBC, you can generate SAS data sets that contain system tables:
Set Preferences...
from the Profile
pmenu.
Access Mode
to ODBC.
Access Mode
Options
.
Create Table
and
Create Column
.
For SYBASE, the system table information can be read from a SAS data set:
Set Preferences...
from the Profile
pmenu.
Access Mode
to SYBASE.
SAS Data Sets
.
Create Table
and
Create Column
.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.