Problem Note 2993: TODw. format may cause incorrect results
In Version 8 TSLEVEL M0 and Release 8.1 TSLEVEL 1M0 of the SAS System,
within the same DATA step, once a datetime variable uses the TODw.
format the original datetime value is replaced with only the time
portion of the value. Methods within the DATA step which use the
TODw. format include the PUT statement and the PUT function. Below
are 2 separate examples to show how this can occur.
data _null_;
x='19JUL2000:07:35:15'dt;
put x datetime19.;
put x tod8.;
put x datetime19.;
run;
data _null_;
x=19JUL2000:07:35:15'dt;
put x datetime20.;
time=put(x,tod8.);
put time;
datetime=put(x,datetime20.);
put datetime;
run;
The result of the PUT statements written to the SAS Log for both of
the above DATA steps show:
19JUL2000:07:35:15
07:35:15
01JAN1960:07:35:15
This problem is corrected in Release 8.2 TSLEVEL 2M0.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | Base SAS | Microsoft Windows 95/98 | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows NT Workstation | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 8.2 TS2M0 |
| OpenVMS VAX | 8 TS M0 | 8.2 TS2M0 |
| Solaris | 8 TS M0 | 8.2 TS2M0 |
| ABI+ for Intel Architecture | 8 TS M0 | 8.2 TS2M0 |
| z/OS | 8 TS M0 | 8.2 TS2M0 |
| OS/2 | 8 TS M0 | 8.2 TS2M0 |
| IRIX | 8 TS M0 | 8.2 TS2M0 |
| HP-UX | 8 TS M0 | 8.2 TS2M0 |
| OpenVMS Alpha | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | 8.2 TS2M0 |
| CMS | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled AIX | 8 TS M0 | 8.2 TS2M0 |
| Tru64 UNIX | 8 TS M0 | 8.2 TS2M0 |
| AIX | 8 TS M0 | 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: | Problem Note |
| Priority: | high |
| Topic: | SAS Reference ==> Formats
|
| Date Modified: | 2000-07-07 12:52:38 |
| Date Created: | 2000-07-07 12:52:38 |