SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 48282: How to change the directory in which the QE temporary file is created by DataDirect Drivers

DetailsAboutRate It

The DataDirect drivers, used by some SAS/ACCESS® software products, might need to create temporary files for larger results sets. If the directory in which this file is being created does not have enough space, you might see an error like the following in the SAS log:

ERROR: CLI open cursor error: [DataDirect][ODBC SQL Server Wire Protocol driver]Error (616) on input or output to a file.

To redirect this file to a different location, use the following information.

In a Windows operating environment, the ODBC driver uses the GetTempPath() function to get the directory for the file.

The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

  1. The path specified by the TMP environment variable
  2. The path specified by the TEMP environment variable
  3. The path specified by the USERPROFILE environment variable
  4. The Windows directory

GetTempFileName is used to create a filename that contains the prefix "qe."

In a UNIX operating environment, the ODBC driver uses tempnam() to create a temporary file that contains the prefix "qe."

If the environment variable QE_TMPDIR is set, the file is created in this directory (if appropriate). Otherwise, the function chooses where to put the file.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to GreenplumMicrosoft® Windows® for x649.39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.39.3 TS1M0
Microsoft Windows Server 2003 for x649.39.3 TS1M0
Microsoft Windows Server 20089.39.3 TS1M0
Microsoft Windows Server 2008 for x649.39.3 TS1M0
Microsoft Windows XP Professional9.39.3 TS1M0
Windows 7 Enterprise 32 bit9.39.3 TS1M0
Windows 7 Enterprise x649.39.3 TS1M0
Windows 7 Home Premium 32 bit9.39.3 TS1M0
Windows 7 Home Premium x649.39.3 TS1M0
Windows 7 Professional 32 bit9.39.3 TS1M0
Windows 7 Professional x649.39.3 TS1M0
Windows 7 Ultimate 32 bit9.39.3 TS1M0
Windows 7 Ultimate x649.39.3 TS1M0
Windows Vista9.39.3 TS1M0
Windows Vista for x649.39.3 TS1M0
64-bit Enabled AIX9.39.3 TS1M0
64-bit Enabled Solaris9.39.3 TS1M0
HP-UX IPF9.39.3 TS1M0
Linux9.39.3 TS1M0
Linux for x649.39.3 TS1M0
Solaris for x649.39.3 TS1M0
SAS SystemSAS/ACCESS Interface to Microsoft SQL Server64-bit Enabled AIX9.39.3 TS1M0
64-bit Enabled HP-UX9.39.3 TS1M0
64-bit Enabled Solaris9.39.3 TS1M0
HP-UX IPF9.39.3 TS1M0
Linux9.39.3 TS1M0
Linux for x649.39.3 TS1M0
Solaris for x649.39.3 TS1M0
* 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.