![]() | ![]() | ![]() | ![]() |
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 3.1 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.
Note: Beginning with SAS Information Map Studio 4.2, you have the option to add "(missing values)" as a prompt choice. Beginning with SAS Web Report Studio 4.3, prompts automatically include (missing values) as a choice if the data contains missing values.
/* 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.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.


| 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 | ||||




