<?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 fixed width text file import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393352#M94708</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 21:49:05 GMT</pubDate>
    <dc:creator>alzioud</dc:creator>
    <dc:date>2017-09-05T21:49:05Z</dc:date>
    <item>
      <title>fixed width text file import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393352#M94708</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 21:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393352#M94708</guid>
      <dc:creator>alzioud</dc:creator>
      <dc:date>2017-09-05T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: fixed width text file import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393356#M94710</link>
      <description>&lt;P&gt;The basic approach for fixed width is to specify the start and end column for each variable:&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "file to read" &amp;lt;any needed options like lrecl &amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var2&amp;nbsp; 2-3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var3&amp;nbsp; 4-9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;etc.&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are reading character data then use varx $ startcolumn-endcolumn.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393356#M94710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-05T20:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: fixed width text file import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393359#M94711</link>
      <description>i wrote this code and it kept giving me the following message:&lt;BR /&gt;&lt;BR /&gt;the code:&lt;BR /&gt;DATA Jan;&lt;BR /&gt;infile 'C:\Users\maa285\Desktop\MySAS\Jan.07';&lt;BR /&gt;input @1 type 1. code $ 2-3 ID $ 4-9 $ direction $ 10-10 lane $ 11-11 year&lt;BR /&gt;$ 12-13 $ month $ 14-15 $ day $ 16-17 $ hour $ 18-19 $ volume 20-24 $&lt;BR /&gt;class1 $ 25-29 $ class2 $ 30-34 $ class3 $ 35-39 $ class4 $ 40-44 $ class5&lt;BR /&gt;45-49 $ class6 $ 50-54 $ class7 $ 55-59 $ class8 $ 60-64 $ class9 $ 65-69 $&lt;BR /&gt;class10 $ 70-74 $ class11 $ 75-79 $ class12 $ 80-84 $ class 13 $ 85-89 $&lt;BR /&gt;class14 $ 90-94 $ class15 $ 95-99;&lt;BR /&gt;run;&lt;BR /&gt;proc print;&lt;BR /&gt;title 'january card';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;and the error message is:&lt;BR /&gt;LINE and COLUMN cannot be determined.&lt;BR /&gt;and:&lt;BR /&gt;Expecting a name.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393359#M94711</guid>
      <dc:creator>alzioud</dc:creator>
      <dc:date>2017-09-05T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: fixed width text file import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393366#M94712</link>
      <description>&lt;P&gt;Looks like you put an extra space in one variable name:&amp;nbsp; class 13 should be class13&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393366#M94712</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-05T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: fixed width text file import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393368#M94713</link>
      <description>&lt;P&gt;Use the Insert Code or Insert SAS Code icons in the editor to paste in data and/or code so that the format is preserved.&lt;/P&gt;
&lt;P&gt;Your INPUT statement has a lot of extra $.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input
  type 1-1
  code $ 2-3
  ID $ 4-9
  direction $ 10-10
  lane $ 11-11
  year $ 12-13
  month $ 14-15
  day $ 16-17
  hour $ 18-19
  volume $ 20-24
  class1 $ 25-29
  class2 $ 30-34
  class3 $ 35-39
  class4 $ 40-44
  class5 $ 45-49
  class6 $ 50-54
  class7 $ 55-59
  class8 $ 60-64
  class9 $ 65-69
  class10 $ 70-74
  class11 $ 75-79
  class12 $ 80-84
  class13 $ 85-89
  class14 $ 90-94
  class15 $ 95-99
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fixed-width-text-file-import/m-p/393368#M94713</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-05T20:52:59Z</dc:date>
    </item>
  </channel>
</rss>

