<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I code SAS in EG to have EG add a file link (CSV,TXT etc) to the process flow? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-code-SAS-in-EG-to-have-EG-add-a-file-link-CSV-TXT-etc/m-p/705329#M37862</link>
    <description>&lt;P&gt;&lt;SPAN&gt;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".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any tricks for this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is one way I've thought of to do this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let csvfile="C:\ASI\ASI.csv";

*To create a EG file link to CSV file;
ods csv file=&amp;amp;csvfile;
     proc print data=&amp;amp;SysLast (obs=1) ; run;
ods csv close;

*To export to the CSV file (and not wait for ODS CSV);
proc export data=&amp;amp;sysLast 
     outfile=&amp;amp;csvfile
     dbms=csv 
     replace;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Dec 2020 16:24:33 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2020-12-11T16:24:33Z</dc:date>
    <item>
      <title>How can I code SAS in EG to have EG add a file link (CSV,TXT etc) to the process flow?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-code-SAS-in-EG-to-have-EG-add-a-file-link-CSV-TXT-etc/m-p/705329#M37862</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any tricks for this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is one way I've thought of to do this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let csvfile="C:\ASI\ASI.csv";

*To create a EG file link to CSV file;
ods csv file=&amp;amp;csvfile;
     proc print data=&amp;amp;SysLast (obs=1) ; run;
ods csv close;

*To export to the CSV file (and not wait for ODS CSV);
proc export data=&amp;amp;sysLast 
     outfile=&amp;amp;csvfile
     dbms=csv 
     replace;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Dec 2020 16:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-code-SAS-in-EG-to-have-EG-add-a-file-link-CSV-TXT-etc/m-p/705329#M37862</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-12-11T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I code SAS in EG to have EG add a file link (CSV,TXT etc) to the process flow?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-code-SAS-in-EG-to-have-EG-add-a-file-link-CSV-TXT-etc/m-p/727088#M38349</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15329"&gt;@PhilC&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have some issues with this statement.&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;%let csvfile="C:\ASI\ASI.csv";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-code-SAS-in-EG-to-have-EG-add-a-file-link-CSV-TXT-etc/m-p/727088#M38349</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T12:47:57Z</dc:date>
    </item>
  </channel>
</rss>

