SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 60392: Creating rules gives an "Invalid argument to function ..." error when code includes certain DS2 functions

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Business Rules ManagerMicrosoft Windows 8.1 Pro 32-bit3.19.4 TS1M3
Microsoft Windows 8.1 Pro x643.19.4 TS1M3
Microsoft Windows 8 Enterprise x643.19.4 TS1M3
Microsoft Windows 8 Pro 32-bit3.19.4 TS1M3
Microsoft Windows 8 Pro x643.19.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit3.19.4 TS1M3
Microsoft Windows 8.1 Enterprise x643.19.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit3.19.4 TS1M3
Microsoft® Windows® for x643.19.4 TS1M3
Solaris for x643.19.4 TS1M3
Linux for x643.19.4 TS1M3
HP-UX IPF3.19.4 TS1M3
64-bit Enabled Solaris3.19.4 TS1M3
64-bit Enabled AIX3.19.4 TS1M3
Windows 7 Ultimate x643.19.4 TS1M3
Windows 7 Ultimate 32 bit3.19.4 TS1M3
Windows 7 Professional x643.19.4 TS1M3
Windows 7 Professional 32 bit3.19.4 TS1M3
Windows 7 Home Premium x643.19.4 TS1M3
Windows 7 Home Premium 32 bit3.19.4 TS1M3
Windows 7 Enterprise x643.19.4 TS1M3
Windows 7 Enterprise 32 bit3.19.4 TS1M3
Microsoft Windows Server 2012 Std3.19.4 TS1M3
Microsoft Windows Server 2012 R2 Std3.19.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter3.19.4 TS1M3
Microsoft Windows Server 2012 Datacenter3.19.4 TS1M3
Microsoft Windows Server 2008 for x643.19.4 TS1M3
Microsoft Windows Server 2008 R23.19.4 TS1M3
Microsoft Windows Server 20083.19.4 TS1M3
Microsoft Windows 103.19.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.