<?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: Exporting to Tab Delimited format issue in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26152#M5953</link>
    <description>However, that note is about Proc Export (Base) and Excel:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;PROC EXPORT, when exporting data to Excel, preceeds each character value that is written out with a single leading quote. This is the proper behavior, and began with the original Lotus applications. The spreadsheet format was originally designed for numeric data and mathematical functions.  Since a spreadsheet would take only numbers, in order to enter an alpha character (it was called a Label), you had to preceed the entry with a single-quote.&lt;BR /&gt;
&lt;BR /&gt;
This single quote is not part of the text value, however.  It is just displayed in the contents box.  There are no settings or options in PROC EXPORT (or the Export Wizard) that will alter the behavior, but it&lt;BR /&gt;
should not cause any issues with the data in Excel.&lt;BR /&gt;
&lt;/I&gt;</description>
    <pubDate>Wed, 18 Jun 2008 20:08:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-18T20:08:54Z</dc:date>
    <item>
      <title>Exporting to Tab Delimited format issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26149#M5950</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm using a data _null_ statement to output multiple scores into a tab delimited file. Everything is turning out great but there is a leading space before every column except the first one (when opened in Excel).&lt;BR /&gt;
&lt;BR /&gt;
Is there anyway to put some kind of format in the FILE line to make it not put in that extra blank space? It seems like the data is right justified and it needs to be left justified.&lt;BR /&gt;
&lt;BR /&gt;
Any fix would need to be for SAS base only.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help!</description>
      <pubDate>Tue, 17 Jun 2008 22:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26149#M5950</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-17T22:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Tab Delimited format issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26150#M5951</link>
      <description>This might help:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/17/343.html" target="_blank"&gt;http://support.sas.com/kb/17/343.html&lt;/A&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26150#M5951</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-18T19:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Tab Delimited format issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26151#M5952</link>
      <description>I do not have SAS Access, only the Base program.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the suggestion!</description>
      <pubDate>Wed, 18 Jun 2008 19:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26151#M5952</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-18T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Tab Delimited format issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26152#M5953</link>
      <description>However, that note is about Proc Export (Base) and Excel:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;PROC EXPORT, when exporting data to Excel, preceeds each character value that is written out with a single leading quote. This is the proper behavior, and began with the original Lotus applications. The spreadsheet format was originally designed for numeric data and mathematical functions.  Since a spreadsheet would take only numbers, in order to enter an alpha character (it was called a Label), you had to preceed the entry with a single-quote.&lt;BR /&gt;
&lt;BR /&gt;
This single quote is not part of the text value, however.  It is just displayed in the contents box.  There are no settings or options in PROC EXPORT (or the Export Wizard) that will alter the behavior, but it&lt;BR /&gt;
should not cause any issues with the data in Excel.&lt;BR /&gt;
&lt;/I&gt;</description>
      <pubDate>Wed, 18 Jun 2008 20:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26152#M5953</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-18T20:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Tab Delimited format issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26153#M5954</link>
      <description>Are you doing this with the PUT statement?&lt;BR /&gt;
&lt;BR /&gt;
If so, a trick to get rid of the leading blank is to add a pointer that adds "-1" to the output.&lt;BR /&gt;
&lt;BR /&gt;
So if you used&lt;BR /&gt;
tab='09'x;&lt;BR /&gt;
PUT vara tab varb tab varc;&lt;BR /&gt;
&lt;BR /&gt;
change it to&lt;BR /&gt;
&lt;BR /&gt;
tab='09'x;&lt;BR /&gt;
m1= -1;&lt;BR /&gt;
PUT vara +m1 tab +m1 varb +m1 tab +m1 varc;&lt;BR /&gt;
&lt;BR /&gt;
The SAS macro DS2CSV may also do it:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002683390.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002683390.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Thu, 19 Jun 2008 14:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-Tab-Delimited-format-issue/m-p/26153#M5954</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-06-19T14:08:04Z</dc:date>
    </item>
  </channel>
</rss>

