<?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: tab delimited file without column header/names in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7926#M2815</link>
    <description>Thanks for the explanation Cynthia and Gary.</description>
    <pubDate>Wed, 29 Sep 2010 21:27:39 GMT</pubDate>
    <dc:creator>4john</dc:creator>
    <dc:date>2010-09-29T21:27:39Z</dc:date>
    <item>
      <title>tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7920#M2809</link>
      <description>I have a dataset with sixty columns and 300 observations.I would like to create a tab delimited file with out the column variables in the first row.&lt;BR /&gt;
I used below code.But its creating a tab space at the beginning of the first column.Please suggest me a way to create a tab delimited without the variable names in the first row.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	file "&amp;amp;fileloc/&amp;amp;outfile" lrecl=32760;&lt;BR /&gt;
    	set work.report;    	&lt;BR /&gt;
    	put (_all_)('09'x);&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Mon, 27 Sep 2010 21:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7920#M2809</guid>
      <dc:creator>4john</dc:creator>
      <dc:date>2010-09-27T21:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7921#M2810</link>
      <description>Investigate the DLM= keyword (and also DSD) on the FILE for changing this behavior.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 27 Sep 2010 21:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7921#M2810</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-27T21:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7922#M2811</link>
      <description>Try adding &lt;BR /&gt;
DLM='09'x  DSD&lt;BR /&gt;
to your file statement&lt;BR /&gt;
&lt;BR /&gt;
change your put statement to&lt;BR /&gt;
put (_all_) ($);</description>
      <pubDate>Wed, 29 Sep 2010 12:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7922#M2811</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2010-09-29T12:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7923#M2812</link>
      <description>Thanks Gary.It worked.&lt;BR /&gt;
It would be very helpful if you can give a brief explanation of how $ symbol next to put statement fixed this issue.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Wed, 29 Sep 2010 15:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7923#M2812</guid>
      <dc:creator>4john</dc:creator>
      <dc:date>2010-09-29T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7924#M2813</link>
      <description>I was experimenting based on this post I found in the knowledge base &lt;A href="http://support.sas.com/kb/24/843.html" target="_blank"&gt;http://support.sas.com/kb/24/843.html&lt;/A&gt; &lt;BR /&gt;
and got an error message that SAS was expecting a quoted string, $, &amp;amp;, /, //, :, =, ?, ~  (I think that's everything.)&lt;BR /&gt;
When I tried the $, I got the result I wanted.  I tried the others too and some gave me the same results as the $ while others like / inserted a carriage return.  I'm not sure exactly what's going on, but it works, so I decided to post it.</description>
      <pubDate>Wed, 29 Sep 2010 15:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7924#M2813</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2010-09-29T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7925#M2814</link>
      <description>Hi:&lt;BR /&gt;
  Some comments...when you use PUT (_ALL_) you are tellling SAS to write ALL of the variables from the PDV (Program Data Vector) to the output file specified on the FILE statement. When you use a PUT like this, what you can (and should) always specify is the format to use to write the variables. The ($) tells SAS to use a character format for EVERYTHING that's being written.&lt;BR /&gt;
 &lt;BR /&gt;
  In addition, the DLM= option and the DSD options on the FILE statement tell SAS to use the tab character (09'x) as the separator/delimiter and the DSD option tells SAS to put quotes around variable values which contain spaces and special characters, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000171874.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000171874.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  So in your case, the original PUT statement was never going to work:&lt;BR /&gt;
[pre]&lt;BR /&gt;
put (_all_)('09'x);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
            &lt;BR /&gt;
because ('09'x) is NOT a format -- it is what you wanted to use as a delimiter and it needed to be specified in the DLM= option. With just PUT (_ALL_) and NO format list, you would have gotten this error:&lt;BR /&gt;
[pre]&lt;BR /&gt;
1658  put (_all_);&lt;BR /&gt;
                 -&lt;BR /&gt;
                 79&lt;BR /&gt;
                 76&lt;BR /&gt;
ERROR 79-322: Expecting a (.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                     &lt;BR /&gt;
&lt;BR /&gt;
So the ($) made the PUT statement happy with a format to use for every variable in the PDV. And the DLM= option told SAS to use the tab as the separator.&lt;BR /&gt;
    &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 29 Sep 2010 16:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7925#M2814</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-29T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: tab delimited file without column header/names</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7926#M2815</link>
      <description>Thanks for the explanation Cynthia and Gary.</description>
      <pubDate>Wed, 29 Sep 2010 21:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tab-delimited-file-without-column-header-names/m-p/7926#M2815</guid>
      <dc:creator>4john</dc:creator>
      <dc:date>2010-09-29T21:27:39Z</dc:date>
    </item>
  </channel>
</rss>

