Usage Note 31599: How to create a SASĀ® Information Map filter that subsets results based on partial string values
In SAS Information Map Studio, you can create a filter that will subset results based on a partial string value rather than the entire value of a data item. To do this, you use the INDEX function. The INDEX function returns a numeric value that represents the starting location for the specified string. The following example demonstrates how to filter rows that do not contain the string foo in the MyVariable data item:
- Create a new filter.
- Name the filter.
- Click Edit Data Item.
- Change the type to Numeric.
- For the expression, enter index(<<root.MyVariable>>,'foo').
- Click OK in the Edit Expression box
- For the condition, specify Is equal to.
- Enter 0 for the value.
This filter will return all rows where foo does not occur in the MyVariable data item. To return all rows where foo does appear in MyVariable, specify the condition Is greater than in Step 7.
Operating System and Release Information
| SAS System | SAS Information Map Studio | 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 NT Workstation | 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 | |
*
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.
In SAS Information Map Studio, you can use the INDEX function to create a filter that subsets results based on partial string values
| Date Modified: | 2008-03-28 16:16:18 |
| Date Created: | 2008-03-26 15:33:41 |