Support for the Teradata NUMBER data type has been added to SAS/ACCESS Interface to Teradata with SAS® 9.4M7 (TS1M7) and SAS® Viya® 3.5. The Teradata NUMBER data type has a higher level of precision than SAS® 9.4 supports so data truncation might occur.
If you are not using the NUMBER data type in calculations but you want a higher level of precision than what SAS supports, you can use the Teradata CAST() function with explicit pass-through to change the column to the CHAR data type:
You can place the CAST() function in a Teradata view. You can also use the DBSASTYPE= data set option with the Teradata LIBNAME engine to convert it to the CHAR data type:
Otherwise, the variable will be read in and stored as a different value from what existed in Teradata.
Trying to use an earlier version of SAS to read in a Teradata table that contains a NUMBER data type column might result in a note or error similar to one of the following:
To read in the NUMBER data type with an earlier version of SAS, you can use either the CAST or DBSASTYPE= approach discussed above to read it as a character. If the column has a level of precision that SAS supports, you can CAST it to a numeric data type that SAS supports or set the data type to NUMERIC with the DBSASTYPE= option:
SAS System | SAS/ACCESS Interface to Teradata | OpenVMS Alpha | | | | 9.4 TS1M7 |
Linux for x64 | | | | 9.4 TS1M7 |
Linux | | | | 9.4 TS1M7 |
HP-UX IPF | | | | 9.4 TS1M7 |
HP-UX | | | | 9.4 TS1M7 |
AIX | | | | 9.4 TS1M7 |
ABI+ for Intel Architecture | | | | 9.4 TS1M7 |
64-bit Enabled Solaris | | | | 9.4 TS1M7 |
64-bit Enabled HP-UX | | | | 9.4 TS1M7 |
64-bit Enabled AIX | | | | 9.4 TS1M7 |
Windows Vista for x64 | | | | |
Windows Vista | | | | |
Windows Millennium Edition (Me) | | | | |
Windows 7 Ultimate x64 | | | | 9.4 TS1M7 |
Windows 7 Ultimate 32 bit | | | | 9.4 TS1M7 |
Windows 7 Professional x64 | | | | 9.4 TS1M7 |
Windows 7 Professional 32 bit | | | | 9.4 TS1M7 |
Windows 7 Home Premium x64 | | | | 9.4 TS1M7 |
Windows 7 Home Premium 32 bit | | | | 9.4 TS1M7 |
Windows 7 Enterprise x64 | | | | 9.4 TS1M7 |
Windows 7 Enterprise 32 bit | | | | 9.4 TS1M7 |
Microsoft Windows XP Professional | | | | |
Microsoft Windows Server 2019 | | | | 9.4 TS1M7 |
Microsoft Windows Server 2016 | | | | 9.4 TS1M7 |
Microsoft Windows Server 2012 Std | | | | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Std | | | | 9.4 TS1M7 |
Microsoft Windows Server 2003 Enterprise Edition | | | | |
Microsoft Windows Server 2003 Datacenter Edition | | | | |
Microsoft Windows NT Workstation | | | | |
Microsoft Windows 2000 Professional | | | | |
Microsoft Windows 2000 Server | | | | |
Microsoft Windows 2000 Datacenter Server | | | | |
Microsoft Windows 2000 Advanced Server | | | | |
Microsoft Windows 95/98 | | | | |
Microsoft Windows 10 | | | | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro x64 | | | | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro 32-bit | | | | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise x64 | | | | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise 32-bit | | | | 9.4 TS1M7 |
Microsoft Windows 8 Pro x64 | | | | 9.4 TS1M7 |
Microsoft Windows 8 Pro 32-bit | | | | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise x64 | | | | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise 32-bit | | | | 9.4 TS1M7 |
Microsoft® Windows® for x64 | | | | 9.4 TS1M7 |
Microsoft Windows XP 64-bit Edition | | | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | | | | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | | | | |
z/OS | | | | 9.4 TS1M7 |
z/OS 64-bit | | | | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Datacenter | | | | 9.4 TS1M7 |
Microsoft Windows Server 2012 Datacenter | | | | 9.4 TS1M7 |
Microsoft Windows Server 2008 for x64 | | | | 9.4 TS1M7 |
Microsoft Windows Server 2008 R2 | | | | 9.4 TS1M7 |
Microsoft Windows Server 2008 | | | | 9.4 TS1M7 |
Microsoft Windows Server 2003 for x64 | | | | |
Microsoft Windows Server 2003 Standard Edition | | | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | | | | |
Solaris | | | | 9.4 TS1M7 |
Solaris for x64 | | | | 9.4 TS1M7 |
Tru64 UNIX | | | | 9.4 TS1M7 |
SAS System | SAS Data Connector to Teradata | Linux for x64 | V.03.01 | V.03.05 | Viya | Viya |