BookmarkSubscribeRSS Feed
PhilC
Rhodochrosite | Level 12

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;
1 REPLY 1
Sajid01
Meteorite | Level 14

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 741 views
  • 0 likes
  • 2 in conversation