BookmarkSubscribeRSS Feed
znhnm
Quartz | Level 8

Hi, I have a log reg model on VA. I would like to do scoring on unseen data. I think Export Model is the right option to follow but how can I use the code hat appears when cilcking on that option? I copied and pasted it to SAS Studio, where I created a cas conection. When I run it, I get so many errors. Do I need any alterations/additions on the score cdeo? What is the step by step to see an output table with predictions?

 

znhnm_0-1681256334750.png

 

1 REPLY 1
acordes
Rhodochrosite | Level 12

/* for models that create a readable score file */

 

save the export model output to a txt file accesible from sas studio.

then work with %include.

 

FILENAME REFFILE FILESRVC FOLDERPATH='/Projects/SAS Viya training VWFS/'  FILENAME='_2B3_aux lin_reg_sales_res.txt';
data casuser.rema_scored;
set casuser.rema;
%include reffile;
run;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 914 views
  • 1 like
  • 2 in conversation