<?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: proc export csv sheet name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917128#M361264</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;
&lt;P&gt;Hi I think to do this you need to specify the sheet name as follows:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e use the Sheet statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=mydata 
            outfile='C:\path\to\mydata.csv' 
            dbms=csv 
            replace;
    sheet='MySheetName';/*Insert the Sheet name here*/
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Feb 2024 10:58:36 GMT</pubDate>
    <dc:creator>himself</dc:creator>
    <dc:date>2024-02-21T10:58:36Z</dc:date>
    <item>
      <title>proc export csv sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917120#M361259</link>
      <description>&lt;P&gt;&amp;nbsp;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking for a way to name the sheet while the proc export on csv file ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917120#M361259</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2024-02-21T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917128#M361264</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;
&lt;P&gt;Hi I think to do this you need to specify the sheet name as follows:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e use the Sheet statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=mydata 
            outfile='C:\path\to\mydata.csv' 
            dbms=csv 
            replace;
    sheet='MySheetName';/*Insert the Sheet name here*/
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917128#M361264</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2024-02-21T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917134#M361267</link>
      <description>The sheet statement is only valid when using excel-specific dbms (ex. dbms=xlsx). For more information read the documentation &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm#p18zl68aqzqpl8n1vg3w6bugxcul" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acpcref/n0msy4hy1so0ren1acm90iijxn8j.htm#p18zl68aqzqpl8n1vg3w6bugxcul&lt;/A&gt;. If you want to preserve formats also read: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-retain-the-Variable-Format-when-PROC-EXPORT-TO-EXCEL/td-p/357108" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/How-to-retain-the-Variable-Format-when-PROC-EXPORT-TO-EXCEL/td-p/357108&lt;/A&gt;</description>
      <pubDate>Wed, 21 Feb 2024 11:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917134#M361267</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2024-02-21T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917162#M361277</link>
      <description>&lt;P&gt;A CSV file is just a text file.&amp;nbsp;A CSV file does not have "sheet name".&amp;nbsp; When you are writing a CSV file you only need to specify the name of the FILE you want to create.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917162#M361277</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-02-21T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917193#M361291</link>
      <description>Thank you Tom!</description>
      <pubDate>Wed, 21 Feb 2024 17:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-sheet-name/m-p/917193#M361291</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2024-02-21T17:10:13Z</dc:date>
    </item>
  </channel>
</rss>

