BookmarkSubscribeRSS Feed
Question
Fluorite | Level 6

Hi,

 

I have a model built in SAS model Studio and would like to create a model package using %aa_macro_register. One of the parameter is scorecodefile (below). How should the path for . sas file  look like?When I specify the path where my code is saved, it doesn't recognize the path.
 
I know how to register using the GUI but I would like to do it with the macro
 
Thank you
 
  %aa_model_register(
      modelname=&model_name1,
      modeldesc=%bquote(logselect_badloans model from CAS),
      data=mycas.&training_dataset,
      target=BAD,
      level=binary,
      scorecodefile=~/&model_name1..sas,
      scorecodeformat=DATASTEP,
      register=N,
      spk=Y,
      spkfolder=%str(~),
      miningfunction=classification,
      debug=N);
1 REPLY 1
WendyCzika
SAS Employee

I don't think that macro can be used with SAS Viya models since there is no SAS Metadata Server in SAS Viya.  This would only work in SAS 9.4 as far as I know.

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

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
  • 940 views
  • 0 likes
  • 2 in conversation