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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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