Problem Note 40339: NLDATM informat does not read some month values correctly
The NLDATMw. informat does not read some month values correctly. The sample code on the Full Code tab does not read the value Mai 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.
In the sample code below, the month value Mai is not read correctly by the NLDATMw. informat.
options locale=de_DE;
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 00.00',nldatm.);
format Maerz Mai Oktober nldatm.;
put maerz= mai= oktober= ;
run;
The log indicates the month value Mai is considered invalid.
8 options locale=de_DE;
9 data _null_;
10 Maerz=input('01. März 2010 00.00 Uhr',nldatm.);
11 Mai=input('01. Mai 2010 00.00 Uhr',nldatm.);
12 Oktober=input('01. Oktober 2010 00.00',nldatm.);
13 format Maerz Mai Oktober nldatm.;
14 put maerz= mai= oktober= ;
15 run;
NOTE: Invalid argument to function INPUT at line 11 column 8.
Maerz=01. März 2010 00.00 Uhr Mai=. Oktober=01. Oktober 2010 00.00 Uhr
Maerz=01. März 2010 00.00 Uhr Mai=. Oktober=01. Oktober 2010 00.00 Uhr _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 11:8
NOTE: DATA statement used (Total process time):
real time 0.10 seconds
cpu time 0.03 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 |