<?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: Problem using CARDS statement with tab delimited data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75975#M16385</link>
    <description>I think that you are SOL.  CARDS; data were not intended to work with tabs.  See the last sentence in &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/7/505.html" target="_blank"&gt;http://support.sas.com/kb/7/505.html&lt;/A&gt;&lt;BR /&gt;
Put the data into an external file and then you can use tabs.</description>
    <pubDate>Thu, 15 Oct 2009 14:42:30 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-10-15T14:42:30Z</dc:date>
    <item>
      <title>Problem using CARDS statement with tab delimited data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75974#M16384</link>
      <description>I don't know why this isn't working.  Is seems to be related to the delimiter.  If I change the delimiter to something else, it works fine.  I'd really like to get this working for tab delimited records.  Am I missing something?&lt;BR /&gt;
&lt;BR /&gt;
This works fine:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data filelist;&lt;BR /&gt;
	infile cards dlm='#';&lt;BR /&gt;
	input Size :comma8. FileName :$50.;&lt;BR /&gt;
cards;&lt;BR /&gt;
123,345#C:\GFF\Denver File.txt&lt;BR /&gt;
54,332,000#d:\FTR\Mars File.pdf&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
This doesn't:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data filelist;&lt;BR /&gt;
	infile cards dlm='09'X;&lt;BR /&gt;
	input Size :comma8. FileName :$50.;&lt;BR /&gt;
cards;&lt;BR /&gt;
123,345	C:\GFF\Denver File.txt&lt;BR /&gt;
54,332,000	d:\FTR\Mars File.pdf&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
This is the error I get:&lt;BR /&gt;
[pre]&lt;BR /&gt;
NOTE: Invalid data for Size in line 460 1-80.&lt;BR /&gt;
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8&lt;BR /&gt;
461        54332 d:\FTR\Mars File.pdf&lt;BR /&gt;
NOTE: Invalid data errors for file CARDS occurred outside the printed range.&lt;BR /&gt;
NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;
Size=. FileName=54332 d:\FTR\Mars File.pdf _ERROR_=1 _N_=1&lt;BR /&gt;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;
NOTE: The data set WORK.FILELIST has 1 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 15 Oct 2009 14:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75974#M16384</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2009-10-15T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using CARDS statement with tab delimited data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75975#M16385</link>
      <description>I think that you are SOL.  CARDS; data were not intended to work with tabs.  See the last sentence in &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/7/505.html" target="_blank"&gt;http://support.sas.com/kb/7/505.html&lt;/A&gt;&lt;BR /&gt;
Put the data into an external file and then you can use tabs.</description>
      <pubDate>Thu, 15 Oct 2009 14:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75975#M16385</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-10-15T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using CARDS statement with tab delimited data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75976#M16386</link>
      <description>Thanks for the reference.  I had found that Note earlier and I concluded it was possible if the DLM='09'X was specified.  Does that only work with certain operating systems?</description>
      <pubDate>Thu, 15 Oct 2009 14:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75976#M16386</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2009-10-15T14:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using CARDS statement with tab delimited data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75977#M16387</link>
      <description>You get a different problem if you take out the colons.  It works fine except the format for SIZE is too short so the second value is truncated.  If you increase the size of  the informat to comma10, you get an invalid value for the first row.  If you add a space after 123,345, that error goes away.  I don't completely understand what is going on, but though I would share it with you.</description>
      <pubDate>Thu, 15 Oct 2009 15:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75977#M16387</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2009-10-15T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using CARDS statement with tab delimited data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75978#M16388</link>
      <description>&amp;gt; Thanks for the reference.  I had found that Note&lt;BR /&gt;
&amp;gt; earlier and I concluded it was possible if the&lt;BR /&gt;
&amp;gt; DLM='09'X was specified.  Does that only work with&lt;BR /&gt;
&amp;gt; certain operating systems?&lt;BR /&gt;
&lt;BR /&gt;
A secondary issue that MIGHT affect this code is whether your settings in the editor are set to convert tabs to spaces on saving the file.</description>
      <pubDate>Mon, 19 Oct 2009 20:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-using-CARDS-statement-with-tab-delimited-data/m-p/75978#M16388</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2009-10-19T20:16:30Z</dc:date>
    </item>
  </channel>
</rss>

