BookmarkSubscribeRSS Feed
acordes
Rhodochrosite | Level 12

I don't get this working. 

 

In my pipeline I ran successfully a SVM and in the open sas code node I want to score with the saved astore...

I don't know where it is stored...

I thought the macro variables would help me. 

Thre prior SVM saved correctly I would say. 

 

pic2.png

 

pic1.png

ERROR: The file or path '_667LDN0RZS1PV45RA8U86EEK_ast.sashdat' is not available in the file system.

 

/* SAS code */

/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&caslib;

/************************************************************************/
/* Score data using ASTORE code generated for the SVM model             */
/************************************************************************/

proc casutil;
load casdata="&dm_rstoretable..sashdat" incaslib="&dm_caslib."
casout="mine" outcaslib="&caslib.";
run;

proc astore;
  score data=&dm_data out=mycaslib.scored
        rstore=mycaslib.mine copyvars=(x y isInside);
run;

proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;

proc sql;
	select * from mycaslib.scored2(obs=100);
quit;


ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;

 

1 REPLY 1
acordes
Rhodochrosite | Level 12

Update.

It works when I hard-code the astore table name.

But I would like to replace the _AHB0Q0WSA76M8CJR9N53GX1JX_ast

by a macro-variable. Which one?

 

/* SAS code */
%let caslib=public;
libname mycaslib cas caslib=&caslib;

/************************************************************************/
/* Score data using ASTORE code generated for the SVM model             */
/************************************************************************/



proc astore;
  score data=&dm_data out=mycaslib.scored
        rstore=&dm_datalib.._AHB0Q0WSA76M8CJR9N53GX1JX_ast copyvars=(x y isInside);
run;

proc surveyselect data=mycaslib.scored out=mycaslib.scored2 n=10000;
run;

proc sql;
	select * from mycaslib.scored2(obs=100);
quit;


ods graphics on;
proc sgplot data=mycaslib.scored2;
styleattrs datacontrastcolors=(red green);
scatter x=x y=y / group=I_isInside markerattrs=(size=4 symbol=circlefilled) dataskin=pressed;
run;

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 417 views
  • 0 likes
  • 1 in conversation