Problem Note 19655: Filter behavior inconsistent between SAS® Web Report Studio 3.1 and SAS® Information Map Studio
If you have a numeric variable on which you want to filter, you first
need to define a categorical variable with these values. You can then
define a filter in SAS Information Map Studio or SAS Web Report Studio.
Filters defined in SAS Web Report Studio 3.1 might not generate the PROC
SQL code you expect. It is important to understand the difference in the
SQL syntax for the filter because, when a backend database is used, the
SQL syntax determines if the SQL processing is going to occur on the
database or SAS.
Listed below is an example filter created in SAS Information Map Studio
(Example 1) and the comparable filter created in SAS Web Report Studio
(Example 2). Note that the second example uses the SAS PUT function
which cannot be passed to other non-SAS databases. Please note that in
both examples, the SAS Web Report Studio Query Optimizer is turned on.
Example 1: Filter created in SAS Information Map Studio on a categorical
variable created from the numeric variable AGE. This filter will subset
correctly on a non-SAS database.
create table
wrstemp.CDT_D16892_NA_0007_211552 as select
table0.Age as DIR_1 LABEL='Age',
table0.Height as DIR_2 LABEL='Height',
table0.Name
as DIR_3 LABEL='Name',
table0.Sex as DIR_4 LABEL='Sex',
table0.Weight as DIR_5 LABEL='Weight'
from
sashelp.CLASS table0
where
table0.Age = 11;
quit;
Example 2: Filter created in SAS Web Report Studio on a categorical
variable created from the numeric variable AGE. This filter uses the PUT
function and will not subset correctly on a non-SAS database.
create table
wrstemp.CDT_D16892_NA_0005_104519 as select
table0.Age as DIR_1 LABEL='Age',
table0.Height as DIR_2 LABEL='Height',
table0.Name
as DIR_3 LABEL='Name',
table0.Sex as DIR_4 LABEL='Sex',
table0.Weight as DIR_5 LABEL='Weight'
from
sashelp.CLASS table0
where
(strip(put(table0.Age,best.))) in ( '11' ) ;
quit;
Operating System and Release Information
| SAS System | SAS Web Report Studio | Microsoft Windows Server 2003 Datacenter Edition | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows NT Workstation | 3.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows 2000 Professional | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows 2000 Datacenter Server | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows Server 2003 Standard Edition | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows XP Professional | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| 64-bit Enabled AIX | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| 64-bit Enabled Solaris | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| HP-UX IPF | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft® Windows® for x64 | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
| Microsoft Windows 2000 Advanced Server | 3.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
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: | medium |
| Date Modified: | 2007-03-13 15:34:41 |
| Date Created: | 2007-03-01 09:25:52 |