![]() | ![]() | ![]() | ![]() |
You want to create a filter selection list for a category data item with a numeric data type. You know that some values might be missing and you want the list to include a missing value as a filter choice. However, by default, SAS Web Report Studio does not include missing values in filter selection lists. This sample explains how to work around this limitation by using a simple user-defined format. This sample is based on the SASHELP.CLASS library, which you will use to create a new table that includes missing values for Weight.
/* substitute your own library name and path */
libname orgold 'c:\orion\orgold';
/* Create the sample table */
data orgold.sample;
set sashelp.class;
if sex = 'F' then weight = .;
run;
|
/* substitute your own SASFormats path */
libname formats 'C:\SAS\EBI\Lev1\SASMain\SASEnvironment\SASFormats';
proc format library=formats;
value missing
. = '. ';
run;
|
Note: For more information about where to save user-defined formats in a SAS BI environment, see "Make User-Defined Formats Available" on page 4 of SAS Information Map Studio 3.1: Tips and Techniques at http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/infomap31_tips_9310.pdf



To see how the filter works, click the Results tab at the top of this sample.
For a list of available documentation for SAS Web Report Studio, see http://support.sas.com/documentation/onlinedoc/wrs/index.html.
For a list of available documentation for SAS Information Map Studio, see http://support.sas.com/documentation/onlinedoc/ims/index.html.
For a list of available documentation for SAS Management Console, see http://support.sas.com/documentation/onlinedoc/sasmc/index.html.


| Type: | Sample |
| Topic: | Query and Reporting ==> Creating Reports Query and Reporting ==> Interactive Querying Data Management ==> Data Sources ==> Information map |
| Date Modified: | 2008-09-26 15:01:41 |
| Date Created: | 2008-09-26 09:03:56 |
| Product Family | Product | Host | Product Release | SAS Release | ||
| Starting | Ending | Starting | Ending | |||
| SAS System | SAS Web Report Studio | Microsoft® Windows® for x64 | 3.1 | 9.1 TS1M3 SP4 | ||
| Microsoft Windows 2000 Advanced Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Datacenter Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Server | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows 2000 Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Datacenter Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Enterprise Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows Server 2003 Standard Edition | 3.1 | 9.1 TS1M3 SP4 | ||||
| Microsoft Windows XP Professional | 3.1 | 9.1 TS1M3 SP4 | ||||
| Windows Vista | 3.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled AIX | 3.1 | 9.1 TS1M3 SP4 | ||||
| 64-bit Enabled Solaris | 3.1 | 9.1 TS1M3 SP4 | ||||
| HP-UX IPF | 3.1 | 9.1 TS1M3 SP4 | ||||




