BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ullsokk
Pyrite | Level 9

What is the code equivalent of loading a table to memory, as illustrated in this screenshot? I need to load sas_model_table from a CAS publishing destination in code. I have tried the following:

 

proc casutil  ;
load casdata="&table" casout="&table" outcaslib="&caslib" incaslib="&caslib";
run; 

But I get the following error:

 

ERROR: The file or path 'SAS_MODEL_TABLE' is not available in the file system.
ERROR: The action stopped due to errors.

Ullsokk_0-1613742354166.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ullsokk
Pyrite | Level 9

Found the sollution:

 

	proc casutil incaslib="Mod_pub" outcaslib="MOD_PUB" ;
    load casdata='sas_model_table.sashdat' 
	casout="SAS_MODEL_TABLE"  promote;
	quit; 

I have no idea why the casdata all of the sudden needs a .sashdat extension, or why the outcaslib is uppercase, and the incaslib lower case. Same with the casout. I really hope this is due to some sloppyness on my end when setting things up.

View solution in original post

1 REPLY 1
Ullsokk
Pyrite | Level 9

Found the sollution:

 

	proc casutil incaslib="Mod_pub" outcaslib="MOD_PUB" ;
    load casdata='sas_model_table.sashdat' 
	casout="SAS_MODEL_TABLE"  promote;
	quit; 

I have no idea why the casdata all of the sudden needs a .sashdat extension, or why the outcaslib is uppercase, and the incaslib lower case. Same with the casout. I really hope this is due to some sloppyness on my end when setting things up.

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

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