Usage Note 6413: SASDATEFMT option can be defined globally in the config file or as an
environment variable with SAS/ACCESS Interface to Oracle
The SASDATEFMT option can be used in the config file or as an
environment variable with SAS 8.2. When using SAS/ACCESS Interface to
Oracle, SAS uses the "DDMONYYY:HH:MI:SS" Oracle format by default.
When the SAS date, datetime or time variable type does not match the
value stored in the Oracle column, you can use 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 higher, you can globally set the SASDATEFMT option in
the config file or as an environment variable.
To use in the config file, edit the sasv8.cfg file and add an option:
-set SASDATEFMT date
Make sure to close down SAS and re-start for the settings to be
effective.
To use this option as an environment variable:
On Windows:
Go to:
Start -> Settings -? Control Panel
Double click on System
Click on Environment tab
Type SASDATEFMT for Variable Type
Type DATE for Value Type
Click Set
Click Apply
On UNIX:
ksh: export SASDATEFMT=DATE
csh: setenv SASDATEFMT DATE
On 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 you will need to close it down and
re-start for the setting to be effective.
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 |