SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 35117: ANYDTDTE informat incorrectly interprets invalid date value as a SAS date

DetailsHotfixAboutRate It

When the informat ANYDTDTE determines that a value can't be valid (not for MMDDYY, YYMMDD, or DDMMYY), the BEST informat is being used. This results in the original date value being represented as a SAS date.

In this example, '010001' can't be a valid date value. Instead of producing an 'invalid data' message and setting the DOB variable to missing, DOB is set to 10001. When the variable is formatted with the MMDDYY10. format, the result is 5/20/1987.

   data a;
     dob=input("010001",anydtdte6.);
     put dob mmddyy10.;
   run;




Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M09.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M09.2 TS2M2
Microsoft Windows 2000 Advanced Server9.1 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M0
Microsoft Windows 2000 Server9.1 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M0
Microsoft Windows NT Workstation9.1 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M09.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M09.2 TS2M2
64-bit Enabled AIX9.1 TS1M09.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M09.2 TS2M2
64-bit Enabled Solaris9.1 TS1M09.2 TS2M2
HP-UX IPF9.1 TS1M09.2 TS2M2
Linux9.1 TS1M09.2 TS2M2
OpenVMS Alpha9.1 TS1M09.2 TS2M2
Tru64 UNIX9.1 TS1M09.2 TS2M2
* 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.