<?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 infile statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/problem-infile-statement/m-p/323543#M71728</link>
    <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data conference;
infile 'C:\Users\user\Dropbox\SAS\SASDATA\Conference.dat' truncover;
input
  attendee $1-20
  business $21-41
  attendeeID 42-46
  phone1 $47-60
  phone2 $61-74
  phone3 $75-88
  registered $89-92
  contacthome $93-96
  contactmobile $97-100
  @101 registrationrate
  Wednesday $105-108
  Thursday $109-112
  voluntee $113-116
  @117 eat $24.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the truncover option instead of missover, and the use of the $24. format to prevent the interpretation of blanks as delimiters when reading the variable eat.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 07:46:13 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-01-10T07:46:13Z</dc:date>
    <item>
      <title>problem infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-infile-statement/m-p/323541#M71727</link>
      <description>&lt;P&gt;when i am trying to import this data into SAS.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6643iEA9D6B62A0BB3B48/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="324036.jpg" title="324036.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i use the following code, however......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data Conference;&lt;BR /&gt;length eat $24.;&lt;BR /&gt;infile 'C:\Users\user\Dropbox\SAS\SASDATA\Conference.dat' missover;&lt;BR /&gt;input attendee $1-20 business $21-41 attendeeID 42-46 phone1 $47-60 phone2 $61-74 phone3 $75-88&lt;BR /&gt;registered $89-92 contacthome $93-96 contactmobile $97-100 @101 registrationrate&lt;BR /&gt;Wednesday $105-108 Thursday $109-112 voluntee $113-116 @117 eat ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this result ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6644iD685589B912B9A70/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="324041.jpg" title="324041.jpg" /&gt;&lt;/P&gt;&lt;P&gt;only the first word in EAT variable(the first column=the last column in last pic) is read in successfully....&lt;/P&gt;&lt;P&gt;could anyone help me :S &amp;nbsp; &amp;nbsp;thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-infile-statement/m-p/323541#M71727</guid>
      <dc:creator>weiwei2392</dc:creator>
      <dc:date>2017-01-10T07:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-infile-statement/m-p/323543#M71728</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data conference;
infile 'C:\Users\user\Dropbox\SAS\SASDATA\Conference.dat' truncover;
input
  attendee $1-20
  business $21-41
  attendeeID 42-46
  phone1 $47-60
  phone2 $61-74
  phone3 $75-88
  registered $89-92
  contacthome $93-96
  contactmobile $97-100
  @101 registrationrate
  Wednesday $105-108
  Thursday $109-112
  voluntee $113-116
  @117 eat $24.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the truncover option instead of missover, and the use of the $24. format to prevent the interpretation of blanks as delimiters when reading the variable eat.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-infile-statement/m-p/323543#M71728</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-10T07:46:13Z</dc:date>
    </item>
  </channel>
</rss>

