<?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 to CSV issue - need to change csv tab name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322817#M71476</link>
    <description>&lt;P&gt;A CSV file is a comma separated text file with no concepts of sheets or tabs. Excel is the default viewer for CSV files, but it should be a text editor really. When Excel opens a CSV file it defaults with creating a Sheet name that is the same as the file name. This is fully Excel behaviour that would have ot be changed via Excel if at all possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, no, you can't do what you want via SAS.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 21:43:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-01-05T21:43:31Z</dc:date>
    <item>
      <title>Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322799#M71465</link>
      <description>&lt;P&gt;I have&amp;nbsp;a scipt - that runs great, it does a proc export to a .csv file file. It's dynamic (see &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/SAS-Automation-Export/td-p/315194" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/SAS-Automation-Export/td-p/315194&lt;/A&gt;) for the full script... My issue is that while it run great, the CSV ouput that is created also creates the data with a tab name that is the same as the outout file name.. So if my output is &lt;FONT color="#800080" face="Courier New"&gt;core_fed_ack_gen_data_12_06_182127.csv&lt;/FONT&gt; then the tab&amp;nbsp;name inside the csv is &lt;FONT color="#800080" face="Courier New"&gt;core_fed_ack_gen_data_12_06_182 (&lt;/FONT&gt;it cuts off a few chars - but no&amp;nbsp;biggie).. What I would like to do is find a&amp;nbsp;way to&amp;nbsp;genericize just the tab name to &lt;FONT color="#800080" face="Courier New"&gt;core_fed_ack_gen_data&amp;nbsp;&lt;/FONT&gt;or even just&amp;nbsp;sheet 1&amp;nbsp;or whatever...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=ALL&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;outfile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\Users\d7dmb\Documents\core_fed_ack_gen_data_12_06_182127.csv"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=csv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;replace&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 20:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322799#M71465</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-01-05T20:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322806#M71470</link>
      <description>&lt;P&gt;The issue you describe has nothing to do with the CSV file created by PROC EXPORT.&amp;nbsp; Your issue is with EXCEL used to open and view the CSV.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322806#M71470</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-01-05T21:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322807#M71471</link>
      <description>&lt;P&gt;Im just trying to find out if in the dbms section .. if there is a way for SAS to NOT have it so the tab name is the same as the file name, but rather something generic.. I can alter my SAS script so it's using a more generic named file, but I like having the date in the file name if possible&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322807#M71471</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-01-05T21:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322810#M71473</link>
      <description>&lt;P&gt;CSV is flat file there is no SHEET TAB or TAB name.&amp;nbsp; That TAB and name is being produced by EXCEL when you use it to open the file.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322810#M71473</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-01-05T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322817#M71476</link>
      <description>&lt;P&gt;A CSV file is a comma separated text file with no concepts of sheets or tabs. Excel is the default viewer for CSV files, but it should be a text editor really. When Excel opens a CSV file it defaults with creating a Sheet name that is the same as the file name. This is fully Excel behaviour that would have ot be changed via Excel if at all possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, no, you can't do what you want via SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322817#M71476</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-05T21:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to CSV issue - need to change csv tab name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322828#M71481</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/74616"&gt;@hondahawkrider&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Im just trying to find out if in the dbms section .. if there is a way for SAS to NOT have it so the tab name is the same as the file name, but rather something generic.. I can alter my SAS script so it's using a more generic named file, but I like having the date in the file name if possible&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Think about it: where in the CSV file would you find the tab name? Answer: nowhere.&lt;/P&gt;
&lt;P&gt;This is a pure Excel issue.&lt;/P&gt;
&lt;P&gt;If you want to find a workaround in SAS, look at ODS TAGSETS.EXCELXP (to write a report to a named sheet), or LIBNAME EXCEL (to write a pseudo-dataset/sheet into an existing Excel workbook).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-CSV-issue-need-to-change-csv-tab-name/m-p/322828#M71481</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-05T22:22:12Z</dc:date>
    </item>
  </channel>
</rss>

