<?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 Help with infiling in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-with-infiling/m-p/693316#M24989</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile "filepath"

delimiter = '|' 
MISSOVER 
DSD 
FIRSTOBS=2;
input 

ID $15.
Location_ID 9
Code 4
Date_Eff 8 
Date_Insert_Row 8
Date_Exp 8
Code_ID $9.
;

run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to infile data that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ID|Location_ID|Code|Date_Eff|Date_Insert_Row|Date_Exp|Code_ID&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;100101160A |200010386|1|19920430|20200926|22991231|BR3209512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;200001040A |200050045|1|19930630|20200926|22991231|AA8312693&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but my output data looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marleeakerson_0-1603312554003.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50892i5247E98B36461513/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marleeakerson_0-1603312554003.png" alt="marleeakerson_0-1603312554003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;can someone help diagnosis this issue? it looks like the code isn't reading the delimiter properly?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 20:37:19 GMT</pubDate>
    <dc:creator>marleeakerson</dc:creator>
    <dc:date>2020-10-21T20:37:19Z</dc:date>
    <item>
      <title>Help with infiling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-infiling/m-p/693316#M24989</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile "filepath"

delimiter = '|' 
MISSOVER 
DSD 
FIRSTOBS=2;
input 

ID $15.
Location_ID 9
Code 4
Date_Eff 8 
Date_Insert_Row 8
Date_Exp 8
Code_ID $9.
;

run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to infile data that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ID|Location_ID|Code|Date_Eff|Date_Insert_Row|Date_Exp|Code_ID&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;100101160A |200010386|1|19920430|20200926|22991231|BR3209512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;200001040A |200050045|1|19930630|20200926|22991231|AA8312693&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but my output data looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marleeakerson_0-1603312554003.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50892i5247E98B36461513/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marleeakerson_0-1603312554003.png" alt="marleeakerson_0-1603312554003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;can someone help diagnosis this issue? it looks like the code isn't reading the delimiter properly?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 20:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-infiling/m-p/693316#M24989</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-10-21T20:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with infiling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-infiling/m-p/693319#M24991</link>
      <description>&lt;P&gt;Based on your data, your INPUT statement should look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input 
  ID :$15.
  Location_ID :$9.
  Code :$1.
  Date_Eff :yymmdd8. 
  Date_Insert_Row :yymmdd8.
  Date_Exp :yymmdd8.
  Code_ID :$9.
;
format Date_Eff Date_Insert_Row Date_Exp :yymmdd10.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Without the colon modifier, informats override the delimiters, because you then do what is called formatted input.&lt;/P&gt;
&lt;P&gt;Dates should always be read as such, and codes as character&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 20:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-infiling/m-p/693319#M24991</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-21T20:44:50Z</dc:date>
    </item>
  </channel>
</rss>

