SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 20261: Filter results are incorrect when variables are not listed in ascending order in the IN clause

DetailsHotfixAboutRate It
If you use the IN clause to create a portfolio filter with SAS® Risk Dimensions®, and if the variable names within the clause are not sorted in ascending order, some instruments might be missed by the filter, and the results of the filter will be incorrect.

No error or warning messages are produced indicating the the filter did not work properly.

To circumvent the problem, sort the variable names within the clause in ascending order.

For example, the following filter definition is correct:

  FILTER <filter-name> "WHERE <cross-class> IN ('A' 'B')";
whereas this definition is not:

  FILTER <filter-name> "WHERE <cross-class> IN ('B' 'A')";
where

- FILTER is the FILTER statement in PROC RISK

- <filter-name> is a name for the portfolio filter, specified in the FILTER statement

- <cross-class> is the name for the cross classification, specified in the CROSSCLASS statement

- 'A' and 'B' are the names of instrument variables

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Risk Dimensions Enterprise EditionMicrosoft Windows XP Professional4.2.15.29.1 TS1M3 SP39.2 TS2M0
64-bit Enabled Solaris4.2.15.29.1 TS1M3 SP39.2 TS2M0
Solaris4.2.15.29.1 TS1M3 SP39.2 TS2M0
Microsoft Windows 2000 Server4.2.15.29.1 TS1M3 SP39.2 TS2M0
Microsoft Windows NT Workstation4.2.19.1 TS1M3 SP3
Microsoft Windows 2000 Professional4.2.15.29.1 TS1M3 SP39.2 TS2M0
Microsoft Windows 2000 Datacenter Server4.2.15.29.1 TS1M3 SP39.2 TS2M0
Microsoft Windows 2000 Advanced Server4.2.15.29.1 TS1M3 SP39.2 TS2M0
Linux4.2.15.29.1 TS1M3 SP39.2 TS2M0
HP-UX4.2.15.29.1 TS1M3 SP39.2 TS2M0
64-bit Enabled HP-UX4.2.15.29.1 TS1M3 SP39.2 TS2M0
AIX4.2.15.29.1 TS1M3 SP39.2 TS2M0
64-bit Enabled AIX4.2.15.29.1 TS1M3 SP39.2 TS2M0
Tru64 UNIX4.2.15.29.1 TS1M3 SP39.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.