When you set the criteria in a decision-campaign Filter node or a calculated variable, it is possible to select a LIKE operator.
The LIKE operator selects records by comparing character strings with a pattern-matching specification. The percent sign (%) is used as a wildcard and matches any sequence of zero or more characters. The underscore character (_) is also used as a wildcard and matches a single character.
Therefore, you can create criteria such as the following (this is a Filter node example):
There is, however, a specific set of circumstances where the match incorrectly fails and the record is not selected. Those circumstances are met when all of the following are true:
So, in the example above, if the campaign name has a value of CXAB, then the record is selected as expected.
But if the campaign name has a value of AXAB, then the match fails and the record is not selected because there is a partial match with the first A in the campaign name.
The workaround for this problem is to use the INDEX function instead of the LIKE operator, as follows:
In this expression:
The following expression is an example that shows values for target-expression and search-expression:
There is a further but similar issue with a combination of the underscore (_) and the percent (%) wildcard characters in the pattern-matching specification.
Consider this example:
It is expected that if the campaign name has a value of 2000, then the match will be successful and the record will be selected. However, this match fails because the pattern-matching specification contains a percent sign (%) followed by an underscore (_). In this case (and in all similar cases—for example, 2123, 2ABC, and so on), the match incorrectly fails.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Real-Time Decision Manager | Microsoft® Windows® for x64 | 6.3 | 9.4 TS1M1 | ||
Microsoft Windows 8 Enterprise 32-bit | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8 Enterprise x64 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8 Pro 32-bit | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8 Pro x64 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8.1 Enterprise 32-bit | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8.1 Enterprise x64 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8.1 Pro 32-bit | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 8.1 Pro x64 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows 10 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2008 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2008 R2 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2008 for x64 | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2012 Datacenter | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2012 R2 Datacenter | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2012 R2 Std | 6.3 | 9.4 TS1M1 | ||||
Microsoft Windows Server 2012 Std | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Enterprise 32 bit | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Enterprise x64 | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Home Premium 32 bit | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Home Premium x64 | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Professional 32 bit | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Professional x64 | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Ultimate 32 bit | 6.3 | 9.4 TS1M1 | ||||
Windows 7 Ultimate x64 | 6.3 | 9.4 TS1M1 | ||||
64-bit Enabled AIX | 6.3 | 9.4 TS1M1 | ||||
64-bit Enabled Solaris | 6.3 | 9.4 TS1M1 | ||||
HP-UX IPF | 6.3 | 9.4 TS1M1 | ||||
Linux for x64 | 6.3 | 9.4 TS1M1 | ||||
Solaris for x64 | 6.3 | 9.4 TS1M1 |
A fix for this issue for SAS Decision Services 6.4_M1 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/Z24.html#62764A fix for this issue for SAS Decision Services 6.4 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/V46.html#62764Type: | Problem Note |
Priority: | high |
Date Modified: | 2018-10-11 09:39:14 |
Date Created: | 2018-08-15 08:30:25 |