Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Getting the following error in Enterprise Miner

Reply
Occasional Contributor
Posts: 7

Getting the following error in Enterprise Miner

I am getting the following error when trying to run the decision tree node in enterprise Miner:

ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: n+1

ERROR: The macro EM_TREE_RUNTREEPROCEDURE will stop executing.

Can you please let me know the reason?

Super User
Posts: 10,550

Re: Getting the following error in Enterprise Miner

%eval wants either an integer literal or a macro variable that resolves to an integer.

%let n= 5;

%let x = %eval(&n +1);

%put &x;

You can get this message in %if or %do loops as well as they have implicit calls to %eval that you don't see. The place you have n+1 needs &n+1.

Occasional Contributor
Posts: 7

Re: Getting the following error in Enterprise Miner

How do I correct this error in enterprise Miner.

Super User
Posts: 10,550

Re: Getting the following error in Enterprise Miner

Without seeing the code generated other than the suggestion about &n+1 instead of n+1, no idea.

SAS Super FREQ
Posts: 272

Re: Getting the following error in Enterprise Miner

Please contact Tech Support for help with this: http://support.sas.com/ctx/supportform/createForm

Ask a Question
Discussion stats
  • 4 replies
  • 402 views
  • 0 likes
  • 3 in conversation