<?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 Re: download of SAS output as Csv file. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618078#M181260</link>
    <description>&lt;P&gt;Are you looking for something like the following. If not then please provide some input data and what you want it to look like when it is output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create data */
data have;
   input
      id      : $char8.
      my_date : date9.
   ;

   format
      my_date mmddyyn8.
   ;

   datalines;
1 16jan2020
2 17jan2020
3 18jan2020
;


/* write data out as a csv */
data _null_;
   file tempfile dlm=',';

   set have;

   put
      id
      my_date
   ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 13:38:27 GMT</pubDate>
    <dc:creator>Amir</dc:creator>
    <dc:date>2020-01-17T13:38:27Z</dc:date>
    <item>
      <title>download of SAS output as Csv file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618068#M181252</link>
      <description>&lt;P&gt;I working academic project, I converted SAS date format to MMDDYYYY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;output displayed as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can to download output as CSV file?&lt;/P&gt;&lt;P&gt;else to save output as&amp;nbsp; CSV file in same path ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618068#M181252</guid>
      <dc:creator>krishna13</dc:creator>
      <dc:date>2020-01-17T13:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: download of SAS output as Csv file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618077#M181259</link>
      <description>What have you tried so far?</description>
      <pubDate>Fri, 17 Jan 2020 13:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618077#M181259</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-01-17T13:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: download of SAS output as Csv file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618078#M181260</link>
      <description>&lt;P&gt;Are you looking for something like the following. If not then please provide some input data and what you want it to look like when it is output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create data */
data have;
   input
      id      : $char8.
      my_date : date9.
   ;

   format
      my_date mmddyyn8.
   ;

   datalines;
1 16jan2020
2 17jan2020
3 18jan2020
;


/* write data out as a csv */
data _null_;
   file tempfile dlm=',';

   set have;

   put
      id
      my_date
   ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618078#M181260</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-01-17T13:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: download of SAS output as Csv file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618131#M181282</link>
      <description>PROC EXPORT, right click the file and select export or use the Export Task for starters.&lt;BR /&gt;&lt;BR /&gt;It varies a bit based on the version of SAS and if you're on a server/UE.</description>
      <pubDate>Fri, 17 Jan 2020 16:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618131#M181282</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-17T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: download of SAS output as Csv file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618142#M181285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304884"&gt;@krishna13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I working academic project, I converted SAS date format to MMDDYYYY.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output displayed as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can to download output as CSV file?&lt;/P&gt;
&lt;P&gt;else to save output as&amp;nbsp; CSV file in same path ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you working on some remote SAS server?&amp;nbsp; Is it one of SAS's servers (on demand for academics?) or a server at your institution.&amp;nbsp; When you say "download" do you mean you need don't know how to create a CSV file?&amp;nbsp; Or do already know how to create a CSV file but are having trouble moving it somewhere.&amp;nbsp; Where do you want to move it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you running your SAS code?&amp;nbsp; Are you using some front end, like SAS/Studio or Enterprise Guide?&amp;nbsp; Are you using SAS Display Manage to run SAS interactively?&amp;nbsp; Or do you have some other way you are running SAS?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-of-SAS-output-as-Csv-file/m-p/618142#M181285</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-17T17:11:17Z</dc:date>
    </item>
  </channel>
</rss>

