<?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: SAS not able to read the last column using infile function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546391#M151289</link>
    <description>&lt;P&gt;thanks a lot for looking into it&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 07:35:17 GMT</pubDate>
    <dc:creator>tolapa</dc:creator>
    <dc:date>2019-03-27T07:35:17Z</dc:date>
    <item>
      <title>SAS not able to read the last column using infile function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546387#M151285</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a SAS code to import a raw file which looks something like the attached snapshot in the end&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WORK.UPCS_FILE    ;
infile 'temp_all.upcs' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=3 ;
 input xab 1-6
 UPC 9-20
 UPC_Desc$ 22-51
 size$ 52-64
 MUP 67-69
 date 70-76
 storeweeks 78-87
 caus_sw 88-92
 median_price 93-99;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. The output data looks perfectly alright except the fact that the last column (median price) comes out blank for quite a few observations. e.g below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;xab&lt;/TD&gt;&lt;TD&gt;UPC&lt;/TD&gt;&lt;TD&gt;UPC_Desc&lt;/TD&gt;&lt;TD&gt;size&lt;/TD&gt;&lt;TD&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gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;44872&lt;/TD&gt;&lt;TD&gt;1 BARREL RUM 1.0 LTR&lt;/TD&gt;&lt;TD&gt;1.000 LTR&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;27148&lt;/TD&gt;&lt;TD&gt;1 BARREL RUM 750 ML&lt;/TD&gt;&lt;TD&gt;750.000 ML&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching a snapshot of raw data. I can't copy paste the raw data here because it looses format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raw file snapshot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28231i07402B825D55B3EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="raw file snapshot.png" alt="raw file snapshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546387#M151285</guid>
      <dc:creator>tolapa</dc:creator>
      <dc:date>2019-03-27T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS not able to read the last column using infile function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546389#M151287</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137805"&gt;@tolapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just as a thought: Try TRUNCOVER instead of MISSOVER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"I am also attaching a snapshot of raw data. I can't copy paste the raw data here because it looses format."&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Use the {i} icon and copy or data into the window that pops up or even better directly attach your raw data as a text file (Attachments / Chose Files)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546389#M151287</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-03-27T07:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS not able to read the last column using infile function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546390#M151288</link>
      <description>&lt;P&gt;I shortened the lenght of last variable and seems to be doing the right thing now&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546390#M151288</guid>
      <dc:creator>tolapa</dc:creator>
      <dc:date>2019-03-27T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS not able to read the last column using infile function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546391#M151289</link>
      <description>&lt;P&gt;thanks a lot for looking into it&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-not-able-to-read-the-last-column-using-infile-function/m-p/546391#M151289</guid>
      <dc:creator>tolapa</dc:creator>
      <dc:date>2019-03-27T07:35:17Z</dc:date>
    </item>
  </channel>
</rss>

