Problem Note 33467: WEEKU informat returns yearcutoff value when reading a missing value
When the WEEKUw. informat reads a missing value, the value of the YEARCUTOFF= system option is returned as the value.
The expected behavior is a result of a missing value and a note alerting the programmer of invalid data.
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9 TS M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
| Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
| Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
| Microsoft Windows 2000 Server | 9 TS M0 | |
| Microsoft Windows 2000 Professional | 9 TS M0 | |
| Microsoft Windows NT Workstation | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
| Microsoft Windows XP Professional | 9 TS M0 | |
| 64-bit Enabled AIX | 9 TS M0 | |
| 64-bit Enabled HP-UX | 9 TS M0 | |
| 64-bit Enabled Solaris | 9 TS M0 | |
| HP-UX IPF | 9 TS M0 | |
| Linux | 9 TS M0 | |
| OpenVMS Alpha | 9 TS M0 | |
| Tru64 UNIX | 9 TS M0 | |
*
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 WEEKUw. informat reads the format of the number-of-week within the year, and then returns a SAS date value by using the U algorithm. The second value is missing and instead of returning a missing value in the output, the value of YEARCUTOFF (1920) is output.
data a;
input x weeku7.;
datalines;
03W0101
.
;
proc print;
run;
| Type: | Problem Note |
| Priority: | |
| Topic: | SAS Reference ==> Informats ==> Date and Time ==> WEEKU Common Programming Tasks ==> Reading and Writing SAS Data
|
| Date Modified: | 2008-10-02 13:00:36 |
| Date Created: | 2008-09-30 09:11:13 |