Problem Note 52867: Publishing a model returns "ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required"
In SAS® Model Manager, publishing a model to a database might return the following error message:
ERROR: A character operand was found in the %EVAL function or %IF condition
where a numeric operand is required. The condition was:
(&_MM_WorkFolder ne )
ERROR: The macro MDLMGR_EP_PUBLISH will stop executing.
The error occurs because the path separator that is used on UNIX machines is the same symbol as the division operator in SAS.
To work around this issue, use the %NRSTR function when you specify the directory location for temporary scoring files. The directory is specified in SAS® Management Console. To modify this directory specification, follow these steps:
- Open SAS Management Console.
Go to Application Management ► Configuration Manager ► Application
Infrastructure ► Model Manager JavaSvcs. Right-click and choose
Properties ► Settings tab ► In-Database Options.
Select the Directory for temporary scoring files option. Change the
directory to %nrstr(<directory>).
Example
The directory that is listed shows /home/sas/files. To work around the problem, specify the directory this way:
%nrstr(/home/sas/files)
Click OK.
- Restart the services.
Operating System and Release Information
SAS System | SAS Model Manager | 64-bit Enabled AIX | 12.3 | 13.1 | 9.4 TS1M1 | 9.4 TS1M2 |
64-bit Enabled Solaris | 12.3 | 13.1 | 9.4 TS1M1 | 9.4 TS1M2 |
HP-UX IPF | 12.3 | 13.1 | 9.4 TS1M1 | 9.4 TS1M2 |
Linux for x64 | 12.3 | 13.1 | 9.4 TS1M1 | 9.4 TS1M2 |
Solaris for x64 | 12.3 | 13.1 | 9.4 TS1M1 | 9.4 TS1M2 |
*
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.
Publishing a model to a database in SAS Model Manager returns ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required
Type: | Problem Note |
Priority: | high |
Topic: | Analytics ==> Model Management
|
Date Modified: | 2014-08-13 10:53:35 |
Date Created: | 2014-05-01 10:28:14 |