Usage Note 60392: Creating rules gives an "Invalid argument to function ..." error when code includes certain DS2 functions
When creating rules in SAS® Business Rules Manager, you are allowed to use function calls that are part of the SAS® Foundation programming language. When including a DS2 function in SAS Business Rules Manager, errors like these might be displayed in the logs when you create a rule:
NOTE: BASE driver, creation of a VARCHAR column has been requested, but is not supported by the BASE driver. A CHAR column has been
created instead.
NOTE: BASE driver, creation of a INTEGER column has been requested, but is not supported by the BASE driver. A DOUBLE PRECISION
column has been created instead.
ERROR: Invalid argument to function yrdif.
Such errors are related to how conditions are evaluated in the rule. In the case of multiple conditions, SAS Business Rules Manager evaluates each condition independently, before determining the overall result of the condition. With certain DS2 functions, missing values are not supported. As a result, when SAS Business Rules Manager evaluates the expression with a DS2 option and the express contains missing data, an error message is displayed in the logs.
In addition, the SAS Foundation language enables you to specify a property such that missing values are processed, and a note is displayed in the log instead of an error. This property is not available in SAS Business Rules Manager.
Click the Hot Fix tab in this note to access the hot fix for this issue.
After applying the hot fix, a global property DCM_DS2_OPTIONS is available. Enter the following code for the property in the precode for SAS Data Integration Studio or in the pre-processing code for a test in SAS Business Rules Manager.
%let dcm_ds2_options=%str(missing_note);
Operating System and Release Information
SAS System | SAS Business Rules Manager | Microsoft Windows 8.1 Pro 32-bit | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro x64 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise x64 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8 Pro 32-bit | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8 Pro x64 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise 32-bit | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise x64 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise 32-bit | 3.1 | | 9.4 TS1M3 | |
Microsoft® Windows® for x64 | 3.1 | | 9.4 TS1M3 | |
Solaris for x64 | 3.1 | | 9.4 TS1M3 | |
Linux for x64 | 3.1 | | 9.4 TS1M3 | |
HP-UX IPF | 3.1 | | 9.4 TS1M3 | |
64-bit Enabled Solaris | 3.1 | | 9.4 TS1M3 | |
64-bit Enabled AIX | 3.1 | | 9.4 TS1M3 | |
Windows 7 Ultimate x64 | 3.1 | | 9.4 TS1M3 | |
Windows 7 Ultimate 32 bit | 3.1 | | 9.4 TS1M3 | |
Windows 7 Professional x64 | 3.1 | | 9.4 TS1M3 | |
Windows 7 Professional 32 bit | 3.1 | | 9.4 TS1M3 | |
Windows 7 Home Premium x64 | 3.1 | | 9.4 TS1M3 | |
Windows 7 Home Premium 32 bit | 3.1 | | 9.4 TS1M3 | |
Windows 7 Enterprise x64 | 3.1 | | 9.4 TS1M3 | |
Windows 7 Enterprise 32 bit | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Std | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Std | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Datacenter | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Datacenter | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2008 for x64 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2008 R2 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows Server 2008 | 3.1 | | 9.4 TS1M3 | |
Microsoft Windows 10 | 3.1 | | 9.4 TS1M3 | |
*
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.
Date Modified: | 2020-03-18 06:41:14 |
Date Created: | 2017-05-02 10:47:00 |