Usage Note 34709: The EXPORT procedure in Base SAS® does not recognize case sensitive tablenames
When using Base SAS, PROC EXPORT does not recognize case sensitive tablenames and might return an error.
If you use PROC EXPORT to write a case-sensitive database tablename to a delimited text file, use the name literal (n-literal) to specify that dbms tablename. For example, assign a library to a database (such as Sybase) that maintains case sensitivity of tablenames. Then use PROC EXPORT to write a Sybase table to a csv file.
If the Sybase tablename is not specified using the n-literal, the following error will be returned:
libname mylib odbc dsn=Sybasedsn user=syb_user password=syb_pwd;
proc export data=mylib.table_name
OUTFILE="C:\My Documents\table_name.csv"
dbms=csv replace;
run;
"ERROR: File MYLIB.TABLE_NAME.DATA does not exist."
To avoid this error you should use the following syntax:
proc export data=mylib.'table_name'n
OUTFILE="C:\My Documents\My SAS Files\9.1\flatfiles\table_name.csv"
dbms=csv replace;
run;
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
| Microsoft® Windows® for x64 | 9.1 TS1M3 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 | |
| Windows Vista | 9.1 TS1M3 | |
*
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.
| Type: | Usage Note |
| Priority: | |
| Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2 Data Management ==> Data Sources ==> External Databases ==> OLEDB Data Management ==> Data Sources ==> External Databases ==> Oracle Data Management ==> Data Sources ==> External Databases ==> Sybase Data Management ==> Data Sources ==> External Databases
|
| Date Modified: | 2009-02-18 13:04:53 |
| Date Created: | 2009-02-05 09:21:45 |