Problem Note 8919: WHERE with user-written informat produces incorrect results
Beginning in Version 8, a WHERE statement or data set option that
makes use of a user-written informat may produce incorrect results.
The problem occurs when an incorrect length is used internally to
apply the informat. For example:
DATA CNTLIN;
FMTNAME='INFORMAT';
START='0001111111';
END='0001111111';
LABEL=' 1111111';
TYPE='I';
RUN;
PROC FORMAT CNTLIN=CNTLIN;
RUN;
DATA A;
X=2222222;
RUN;
DATA _NULL_;
SET A (WHERE=(INPUT(PUT(X,Z10.),INFORMAT.) EQ 2222222)) ;
RUN;
The WHERE in the last DATA step incorrectly returns zero observations.
To circumvent the problem, use a subsetting IF statement instead
of a WHERE. This problem is corrected in SAS 9 TSLEVEL M0.
A Technical Support hot fix for Release 8.2 (TS2M0) for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#008919
For customers running SAS with Asian Language Support (DBCS), this
hot fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/82_dbcs_prod_list.html#008919
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows NT Workstation | 8 TS M0 | 9.1 TS1M0 |
| Microsoft Windows 2000 Server | 8 TS M0 | 9.1 TS1M0 |
| Microsoft Windows 95/98 | 8 TS M0 | |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | 9.1 TS1M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 9.1 TS1M0 |
| Solaris | 8 TS M0 | 9.1 TS1M0 |
| OpenVMS VAX | 8 TS M0 | 9.1 TS1M0 |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | 9.1 TS1M0 |
| IRIX | 8 TS M0 | 9.1 TS1M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 9.1 TS1M0 |
| z/OS | 8 TS M0 | 9.1 TS1M0 |
| OS/2 | 8 TS M0 | |
| HP-UX | 8 TS M0 | 9.1 TS1M0 |
| ABI+ for Intel Architecture | 8 TS M0 | 9.1 TS1M0 |
| CMS | 8 TS M0 | 9.1 TS1M0 |
| 64-bit Enabled AIX | 8 TS M0 | 9.1 TS1M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | 9.1 TS1M0 |
| OpenVMS Alpha | 8 TS M0 | 9.1 TS1M0 |
| Tru64 UNIX | 8 TS M0 | 9.1 TS1M0 |
| AIX | 8 TS M0 | 9.1 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.
| Type: | Problem Note |
| Priority: | high |
| Topic: | SAS Reference ==> Informats
|
| Date Modified: | 2009-05-26 15:01:23 |
| Date Created: | 2002-11-18 15:11:02 |