BookmarkSubscribeRSS Feed
mdcervantes
Calcite | Level 5

How do I download .sashdat from SAS Viya? My alternative is to export the table to .csv but it wouldn't allow me to save the proper field types once I import it again later.

2 REPLIES 2
HarrySnart
SAS Employee

Hi @mdcervantes , you can use the table.save CAS Action via PROC CAS as one way. Example from documentation below

proc cas;
  session casauto;
  table.save /
    table="iris"
    name="irisCopy.sashdat"
    replace=True;
    
  table.fileInfo /                                                /* 1*/
    path="irisCopy.sashdat";
quit;

You can view the action set details here: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg/cas-table-save.htm

 

Likewise, you can use PROC CASUTIL to save tables to sashdat as well.

 

Hope this helps

Harry

alisio_meneses
Quartz | Level 8
Hi there, @mdcervantes. Did you manage to download .sashdat from SAS Viya? If so, how dit you do it?

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1262 views
  • 1 like
  • 3 in conversation