G'day,
I have the following code.
PROC IMPORT DATAFILE = '/home/devcmj0/sasuser.v94/test1.csv' DBMS='csv' OUT=test1 REPLACE;
RUN;
PROC IMPORT DATAFILE = '/home/devcmj0/sasuser.v94/wei.csv' DBMS='csv' OUT=wei1 REPLACE;
RUN;
PROC CONTENTS DATA=test1; RUN;
PROC CONTENTS DATA=wei1; RUN;
proc reg data=test1;model Y = x1 x2;run;
proc cspatialreg data=test1 Wmat=wei1;
model y=x1 x2 / type=SAR;
spatialid SID;
run;
Getting the below error messages.
ERROR: WMAT INPUT table WORK.WEI1 is not a CAS table.
What is the reason for this message?
Thank you,
Dev
Any chance that you meant to use Proc SPATIALREG (no C) in the name?
The CSPATIALREG procedure is specifically designed to operate on SAS Viya and performs computations in multiple threads on multiple machines. In comparison, the SPATIALREG procedure executes in multiple threads on a single machine. The CSPATIALREG procedure models cross-sectional spatial data in a way that is similar to how the SPATIALREG procedure in SAS/ETS software models them.
See https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/casecon/casecon_cspatialreg_overview02.htm
Please modify the subject line of your post so that it briefly describes your question.
Any chance that you meant to use Proc SPATIALREG (no C) in the name?
The CSPATIALREG procedure is specifically designed to operate on SAS Viya and performs computations in multiple threads on multiple machines. In comparison, the SPATIALREG procedure executes in multiple threads on a single machine. The CSPATIALREG procedure models cross-sectional spatial data in a way that is similar to how the SPATIALREG procedure in SAS/ETS software models them.
See https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/casecon/casecon_cspatialreg_overview02.htm
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.