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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1601 views
  • 0 likes
  • 3 in conversation