Usage Note 30567: Using the SQL Pass-Through facility in the SAS® System to find the schema name for a Teradata table
Teradata tables might not be listed in the SAS Explorer library even after a libref is successfully assigned. This problem can be resolved by adding the SCHEMA= option in the LIBNAME statement, as shown in the following example:
libname tera teradata user=teradata-username
password=teradata-password
schema=teradata-schema;
The schema is another name for the owner. If you are not sure what to use for schema, you can find the schema name by submitting the following SQL procedure. In this code, DBC is the name of the database.
proc sql;
connect to Teradata(user=teradata_username password=teradata_password);
create table list_tab as
select * from connection to Teradata(select Creatorname,
tablename from dbc.tablesx);
quit;
The SAS data set LIST_TAB then lists the Teradata tables with their associated schema names.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Teradata | Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Windows Vista | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Please enter your teradata userid for the user= and teradata password for password=. Dataset list_tab will contain a list of Teradata tables with associated schema names. ‘dbc’ is the name of your teradata database.
proc sql;
Connect to Teradata(user=tera_user password=tera_pass);
Create table list_tab as
Select * from connection to Teradata(select Creatorname, tablename from dbc.tablesx);
quit;
Date Modified: | 2008-05-22 08:50:53 |
Date Created: | 2007-11-15 10:17:21 |