Problem Note 40339: NLDATM informat does not read months properly
The NLDATMw. informat does not read certain month values correctly. The code shown under the Code tab doesn't read values Mai and Oktober correctly.
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft® Windows® for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2008 | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Microsoft Windows XP Professional | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Enterprise 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Enterprise x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Home Premium 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Home Premium x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Professional 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Professional x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Ultimate 32 bit | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows 7 Ultimate x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows Vista | 9.2 TS2M3 | 9.3 TS1M0 |
| Windows Vista for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| 64-bit Enabled AIX | 9.2 TS2M3 | 9.3 TS1M0 |
| 64-bit Enabled HP-UX | 9.2 TS2M3 | 9.3 TS1M0 |
| 64-bit Enabled Solaris | 9.2 TS2M3 | 9.3 TS1M0 |
| HP-UX IPF | 9.2 TS2M3 | 9.3 TS1M0 |
| Linux | 9.2 TS2M3 | 9.3 TS1M0 |
| Linux for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
| OpenVMS on HP Integrity | 9.2 TS2M3 | 9.3 TS1M0 |
| Solaris for x64 | 9.2 TS2M3 | 9.3 TS1M0 |
*
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.
The month values Mai and Oktober aren't read correctly by NLDATMw. informat.
data _null_;
Maerz=input('01. März 2010 00.00 Uhr',nldatm.);
Mai=input('01. Mai 2010 00.00 Uhr',nldatm.);
Oktober=input('01. Oktober 2010',nldatm.);
format Maerz Mai Oktober nldatm.;
put maerz= mai= oktober=;
run;
The log indicates these month values are considered invalid.
21 data _null_;
22 Maerz=input('01. März 2010 00.00 Uhr',nldatm.);
23 Mai=input('01. Mai 2010 00.00 Uhr',nldatm.);
24 Oktober=input('01. Oktober 2010',nldatm.);
25 format Maerz Mai Oktober nldatm.;
26 put maerz= mai= oktober=;
27 run;
NOTE: Invalid argument to function INPUT at line 23 column 8.
NOTE: Invalid argument to function INPUT at line 24 column 12.
Maerz=01. März 2010 00.00 Uhr Mai=. Oktober=.
Maerz=01. März 2010 00.00 Uhr Mai=. Oktober=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results
of the operations have been set to missing values.
Each place is given by: (Number of times) at (Line):(Column).
1 at 23:8 1 at 24:12
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> Informats ==> Date and Time ==> NLDATM
|
| Date Modified: | 2010-09-07 11:32:33 |
| Date Created: | 2010-07-14 12:41:59 |