BookmarkSubscribeRSS Feed
patrali_c
Calcite | Level 5

ERROR: (execution) Numeric argument should be character.

operation : = at line 10312 column 1
operands : _TEM1001, *LIT1433

_TEM1001 1 row 1 col (character, size 3)

1

*LIT1433 1 row 1 col (numeric)

.

statement : IF at line 10312 column 1
ERROR: Row or column names must be character

statement : PRINT at line 10312 column 1
NOTE: Exiting IML.

here's the code:

 

proc iml;
%include "C:\Users\patrali.chakrabarty\Downloads\processv3\PROCESS\PROCESS v3.0 for SAS\process.sas"; run;
%process (data = study1_comp,y = PI,x = TT,m = IM,w = PCE,
z = R,cov = Often,plot = 1,moments = 1,model = 9,boot = 10000);run;

 

Any help will be appreciated. Thanks

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

The error:

ERROR: (execution) Numeric argument should be character.

 

Tells you everything you need to know.  The code is expecting a character variable, you have provided a numeric variable.  Check your dataset to check the type of the variables matches the type prescribed by this %Process macro.

Kurt_Bremser
Super User

That looks like an IML error.

Load the macro file into your EG or SAS Studio, and run the iml code "manually" by replacing macro variables with their values from the macro call.

 

Always make sure that code runs successfully without macro action before making it dynamic.

If that macro is not a creation of yours, it should include comments how to use it, or there should be a documentation accompanying it. If not, return to sender.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1744 views
  • 0 likes
  • 3 in conversation