I would like to add a file link to a CSV file I've exported, specifically using PROC EXPORT, so that it displays in the EG project's process flow connected to the block of code the EXPORT code is written in. I can use ODS CSV, I can use EG's task, but I do not wish to for "reasons".
Any tricks for this?
This is one way I've thought of to do this:
%let csvfile="C:\ASI\ASI.csv";
*To create a EG file link to CSV file;
ods csv file=&csvfile;
proc print data=&SysLast (obs=1) ; run;
ods csv close;
*To export to the CSV file (and not wait for ODS CSV);
proc export data=&sysLast
outfile=&csvfile
dbms=csv
replace;
run;
Hello @PhilC
I have some issues with this statement.
%let csvfile="C:\ASI\ASI.csv";
If you have SAS installed locally on your machine it is fine. But if you are connecting to SAS installed on a server from SAS EG installed locally on your laptop/desktop, then the location will be on the C drive of your server and not desktop/laptop. Considering my statement above (and making changes as needed to your code) please test and let us know if there is an error.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.