Usage Note 6413: SASDATEFMT option can be defined globally in the config file or as an environment variable with SAS/ACCESS® Interface to Oracle
When you use SAS/ACCESS Interface to Oracle, SAS uses the "DDMONYYY:HH:MI:SS" Oracle format by default. When either the SAS date, datetime,or time variable type does not match the value that is stored in the Oracle column, you can use either the SASDATEFMT option to specify an alternate format or the DATEPART or TIMEPART function to
extract the date or time portion.
With SAS 8.2 and later, you can globally set the SASDATEFMT option in the configurations file or as an environment variable.
To use the option in the configuration file, edit the sasv8.cfg file and add the option as follows:
-set SASDATEFMT date
Be sure to close SAS and then re-start it in order for this setting to take effect.
To use this option as an environment variable:
- In Windows operating environments:
- Select Start ► Settings ► Control Panel ► System to display the System Properties dialog box.
- In the dialog box, click the Environment tab and enter the following information:
- Enter SASDATEFMT for Variable Type.
- Enter DATE for Value Type.
- In UNIX operating environments, add the following:
- For ksh: export SASDATEFMT=DATE
- Fore csh: setenv SASDATEFMT DATEM
Under Unix, you can also specify the option on the SAS invocation line as
follows:
unix_prompt> sas -set SASDATEFMT date
If you are currently running SAS, close it down and re-start it in order for the setting to take effect.
Refer to SAS Note 38864 for a possible performance problem.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to Oracle | Microsoft Windows 95/98 | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
| Solaris | 8.2 TS2M0 | |
| Linux | 8.2 TS2M0 | |
| 64-bit Enabled Solaris | 8.2 TS2M0 | |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | |
| ABI+ for Intel Architecture | 8.2 TS2M0 | |
| HP-UX | 8.2 TS2M0 | |
| 64-bit Enabled AIX | 8.2 TS2M0 | |
| Tru64 UNIX | 8.2 TS2M0 | |
| AIX | 8.2 TS2M0 | |
*
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: | medium |
| Topic: | SAS Reference ==> LIBNAME Engines Data Management ==> Data Sources ==> External Databases ==> Oracle
|
| Date Modified: | 2005-08-25 10:14:40 |
| Date Created: | 2001-12-05 13:08:29 |