Problem Note 49185: SURFACE_VALUE function returns missing values when it should not
In SAS® Risk Dimensions®, the SURFACE_VALUE function can return missing values when it should not. The problem occurs with 2-dimensional surfaces for which the EXTRAPOLATE=CONSTANT option is specified. If the coordinates in the SURFACE_VALUE call necessitate an extrapolation from a risk factor coordinate, the function returns a missing value.
For example, consider this specification in a PROC RISK step.
declare riskfactors = (
rf1_1 num var coordinates=(dim1=1 dim2=1),
rf2_1 num var coordinates=(dim1=2 dim2=1),
rf1_2 num var coordinates=(dim1=1 dim2=2),
rf2_2 num var coordinates=(dim1=2 dim2=2),
rf1_3 num var coordinates=(dim1=1 dim2=3),
rf2_3 num var coordinates=(dim1=2 dim2=3));
array a surface elements=(rf1_1 rf2_1 rf1_2 rf2_2 rf1_3 rf2_3) extrapolate=constant;
The call
b = surface_value( a, 0, 2 );
should always return the value of rf1_2. Instead, it currently returns missing. More generally, the call
b = surface_value( a, x, 2 );
returns missing for every value of x<1 and x>2. If the second coordinate (that is, the third argument) were not 2, the value returned by SURFACE_VALUE would be correct.
There is no workaround.
Note: For details about the syntax and function of the SURFACE_VALUE function, see "The COMPILE Procedure" documentation that is in the SAS® Risk Dimensions® Procedures Guide.
Operating System and Release Information
SAS System | SAS Risk Dimensions Enterprise Edition | Microsoft® Windows® for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Enterprise 32 bit | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Enterprise x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Home Premium 32 bit | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Home Premium x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Professional 32 bit | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Professional x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Ultimate 32 bit | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Ultimate x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows Vista | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows Vista for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled AIX | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled Solaris | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
HP-UX IPF | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Linux | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Linux for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
Solaris for x64 | 5.5 | 6.1 | 9.3 TS1M2 | 9.4 TS1M0 |
*
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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2013-04-05 11:16:05 |
Date Created: | 2013-02-15 11:44:05 |