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.
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.