BookmarkSubscribeRSS Feed
michellekwai
Obsidian | Level 7

Hi everyone, 

 

I know how to load table from internal database and promote the table to global session, I want to know if I create a table in work folder, or any any folder in sas studio, and want to load and promote this table which is created by sas program, what can I do? 

Code is below: 

 

*Create CAS libref ;
cas;
libname sandbox cas caslib="Sandbox" datalimit=all;

*Create table;
proc sql;
create table work.test1 as
select *
from tlake.mkt_account
where ac_type='021' and asofdate='30MAR2018'd;
quit;

*Promote data set to in-memory cas table;
proc casutil;
load casdata="test1" incaslib="Sandbox"
outcaslib="Public" casout="test1" promote;
run;


But this shows errors: 

ERROR: ERROR: ERROR: relation does not exist ANALYSIS._ANALYSIS.test1
ERROR: Function failed.
ERROR: The action stopped due to errors.

 

Thanks! 

6 REPLIES 6
Reeza
Super User

Is this for SAS VA? If so, I'll move the question the SAS VA forum.

michellekwai
Obsidian | Level 7

I need to load and promote table for VA use... Yeah.. should I delete the post and post under VA section? 

alexal
SAS Employee

@michellekwai,

ERROR: ERROR: ERROR: relation does not exist ANALYSIS._ANALYSIS.test1

The error shown above has been generated by proc sql, not by proc casutil.

michellekwai
Obsidian | Level 7

@alexal Thank you for your reply! 

I want to create a temporary table in work folder and then promote this table to CAS. 

I run proc sql seperately, but no error shows... when I run proc casutil.. the error shows..

Any suggestions? 

Thanks! 

alexal
SAS Employee

@michellekwai,

 

I would suggest opening a track with our access team. You can do it here:

 

https://support.sas.com/ctx/supportform/createForm

michellekwai
Obsidian | Level 7

ok. Thanks! @alexal

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 6 replies
  • 1096 views
  • 0 likes
  • 3 in conversation