<?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: help with infile in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74256#M21506</link>
    <description>I expect you see this message.&lt;BR /&gt;
[pre]&lt;BR /&gt;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
To fix it use INFILE option TRUNCOVER.&lt;BR /&gt;
&lt;BR /&gt;
Or switch to list input...&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename FT15F001 temp;&lt;BR /&gt;
data ANY;&lt;BR /&gt;
   *infile "E:\ANY.txt" ;&lt;BR /&gt;
   Infile FT15F001 truncover;&lt;BR /&gt;
   input (Date name VARa VARb VARc)(:mmddyy8. :$5. 3*:3.);&lt;BR /&gt;
   parmcards;&lt;BR /&gt;
02-02-93 Jason 306 145 97&lt;BR /&gt;
02-02-93 John 212 132 85&lt;BR /&gt;
02-09-93 John 215 129 89&lt;BR /&gt;
02-09-93 Jason 295 142 85&lt;BR /&gt;
02-09-93 Mary 303 150 102&lt;BR /&gt;
02-09-93 Beth 323 145 97&lt;BR /&gt;
02-16-93 Beth 320 149 104&lt;BR /&gt;
02-16-93 Jason 285 140 87&lt;BR /&gt;
02-16-93 Mary 999 145 97&lt;BR /&gt;
02-16-93 John 220 135 93&lt;BR /&gt;
02-23-93 Mary 307 149 99&lt;BR /&gt;
02-23-93 John 215 133 92&lt;BR /&gt;
02-23-93 Beth 319 143 99 &lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Sun, 04 Oct 2009 18:13:54 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-10-04T18:13:54Z</dc:date>
    <item>
      <title>help with infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74255#M21505</link>
      <description>When I try to import the data below, I keep having problems with the last variable VARc&lt;BR /&gt;
if I specify that the lenght is 3, it only takes the variables that have three digits, if i put 2 it omits the third digit.....any help, Thanks&lt;BR /&gt;
If I use the wizard import it magically creates a 6th variable with . in them???&lt;BR /&gt;
&lt;BR /&gt;
(Note: I am a new SAS user. )&lt;BR /&gt;
&lt;BR /&gt;
here is my code:&lt;BR /&gt;
&lt;BR /&gt;
data ANY;&lt;BR /&gt;
infile "E:\ANY.txt" ;&lt;BR /&gt;
input @1 Date $8. @10 name $5. @16 VARa 3. @20 VARb 3. @24 VARc 2.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
content of the text file&lt;BR /&gt;
&lt;BR /&gt;
02-02-93 Jason 306 145 97&lt;BR /&gt;
02-02-93 John  212 132 85&lt;BR /&gt;
02-09-93 John  215 129 89&lt;BR /&gt;
02-09-93 Jason 295 142 85&lt;BR /&gt;
02-09-93 Mary  303 150 102&lt;BR /&gt;
02-09-93 Beth  323 145 97&lt;BR /&gt;
02-16-93 Beth  320 149 104&lt;BR /&gt;
02-16-93 Jason 285 140 87&lt;BR /&gt;
02-16-93 Mary  999 145 97&lt;BR /&gt;
02-16-93 John  220 135 93&lt;BR /&gt;
02-23-93 Mary  307 149 99&lt;BR /&gt;
02-23-93 John  215 133 92&lt;BR /&gt;
02-23-93 Beth  319 143 99</description>
      <pubDate>Sun, 04 Oct 2009 17:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74255#M21505</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-04T17:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: help with infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74256#M21506</link>
      <description>I expect you see this message.&lt;BR /&gt;
[pre]&lt;BR /&gt;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
To fix it use INFILE option TRUNCOVER.&lt;BR /&gt;
&lt;BR /&gt;
Or switch to list input...&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename FT15F001 temp;&lt;BR /&gt;
data ANY;&lt;BR /&gt;
   *infile "E:\ANY.txt" ;&lt;BR /&gt;
   Infile FT15F001 truncover;&lt;BR /&gt;
   input (Date name VARa VARb VARc)(:mmddyy8. :$5. 3*:3.);&lt;BR /&gt;
   parmcards;&lt;BR /&gt;
02-02-93 Jason 306 145 97&lt;BR /&gt;
02-02-93 John 212 132 85&lt;BR /&gt;
02-09-93 John 215 129 89&lt;BR /&gt;
02-09-93 Jason 295 142 85&lt;BR /&gt;
02-09-93 Mary 303 150 102&lt;BR /&gt;
02-09-93 Beth 323 145 97&lt;BR /&gt;
02-16-93 Beth 320 149 104&lt;BR /&gt;
02-16-93 Jason 285 140 87&lt;BR /&gt;
02-16-93 Mary 999 145 97&lt;BR /&gt;
02-16-93 John 220 135 93&lt;BR /&gt;
02-23-93 Mary 307 149 99&lt;BR /&gt;
02-23-93 John 215 133 92&lt;BR /&gt;
02-23-93 Beth 319 143 99 &lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 04 Oct 2009 18:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74256#M21506</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-10-04T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: help with infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74257#M21507</link>
      <description>I added the word    truncover   and it worked. &lt;BR /&gt;
Thank you so much! I was going nuts.</description>
      <pubDate>Sun, 04 Oct 2009 21:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-infile/m-p/74257#M21507</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-04T21:31:43Z</dc:date>
    </item>
  </channel>
</rss>

