Problem Note 51865: An invalid format of DATE28. is generated by the IMPORT procedure, the Import Wizard, and EFI
When the IMPORT procedure, the Import Wizard, or EFI encounters a datetime value that contains multiple zeros in the time portion, a format of DATE28. is assigned to the value. An example of a datetime value with the DATE28. format assigned is 02-DEC-13 12.00.00.000000 AM.
The DATE28. format is invalid because the width portion of the format is larger than the maximum width of 11. An error message like the following is returned for the FORMAT statement in the generated DATA step code in the SAS log:
ERROR 29-185: Width specified for format DATE is invalid.
If you are using the IMPORT procedure in SAS® 9.3 or later to read an external file, you can do one of the following to circumvent the problem:
- Recall the generated DATA step code from the SAS log if you are running SAS interactively. Modify the INFORMAT and FORMAT statements for the variable with the invalid width by changing the informat and format to DATETIME28. in both statements. You can recall the generated DATA step code after running PROC IMPORT by selecting Run ► Recall Last Submit from the SAS menu bar.
- Use a DATA step with INFILE and INPUT statements to read the external file instead of using the IMPORT procedure.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | 9.4 TS1M2 |
Microsoft Windows Server 2008 R2 | 9.3 TS1M0 | 9.4 TS1M2 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Home Premium x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Professional 32 bit | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | 9.4 TS1M2 |
Windows 7 Ultimate x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M2 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M2 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M2 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M2 |
Linux | 9.3 TS1M0 | 9.4 TS1M2 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M2 |
Solaris for x64 | 9.3 TS1M0 | 9.4 TS1M2 |
*
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 ==> Procedures ==> IMPORT Common Programming Tasks ==> Reading and Writing External Data ==> EFI Common Programming Tasks ==> Reading and Writing External Data ==> Import Wizard Common Programming Tasks ==> Reading and Writing External Data ==> with PROC EXPORT
|
Date Modified: | 2013-12-20 10:30:00 |
Date Created: | 2013-12-18 13:06:12 |