<?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: Reading txt file in SAS does not show all columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154838#M262788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Arthur! That solved my issues. There's a column in the file that I would like to break it as follows.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4808_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now, the file has Vndr_id_cust column and I would like the vndr_id and cust to be seperated in two columns (e.g: vndr_id and Cust). Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 22:33:04 GMT</pubDate>
    <dc:creator>AliMN</dc:creator>
    <dc:date>2014-01-28T22:33:04Z</dc:date>
    <item>
      <title>Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154834#M262784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;I’ve a text file that Im reading in SAS and for some reason the last column (Year_2013) in the file is not populated (blank). I tried to format but it's not taking. The file consists 4 columns. id_cust has character rows and all Year columns has dollar rows. Here’s my SAS code. Any help is appreciated. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; work.rev;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;INFILE&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;"/vendorlst.txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;DELIMITER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'09'x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;MISSOVER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;DSD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;LRECL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;FIRSTOBS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;LENGTH&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id_cust $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;200&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;INPUT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vndr_id_cust $&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2013;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 17:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154834#M262784</guid>
      <dc:creator>AliMN</dc:creator>
      <dc:date>2014-01-28T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154835#M262785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a sample of your dataset say, e.g., maybe the first 5 or 10 rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One problem is that you define a length for a variable (id_cust), but never use it, but use vndr_id_cust instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 18:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154835#M262785</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-28T18:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154836#M262786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Arthur. To correct on my previous post due typo error. id_cust is same as Vndr_id_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here’s an example of the Input file in txt file I'm using&lt;/P&gt;&lt;P&gt;Vndr_id_cust&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2013&lt;/P&gt;&lt;P&gt; ABC CORPORATION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85032386.25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123252387.54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110031088.50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS output Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/4807_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 19:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154836#M262786</guid>
      <dc:creator>AliMN</dc:creator>
      <dc:date>2014-01-28T19:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154837#M262787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your example is space not tab delimited.&amp;nbsp; If that is what your data really look like, the following changes would do what you want.&amp;nbsp; While I changed missover to truncover, that decision will really depend on what your data really look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.rev;&lt;/P&gt;&lt;P&gt;&amp;nbsp; INFILE "/vendorlst.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp; truncOVER&lt;/P&gt;&lt;P&gt;&amp;nbsp; LRECL=32767&lt;/P&gt;&lt;P&gt;&amp;nbsp; FIRSTOBS=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id_cust $200;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT&amp;nbsp; id_cust &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2013;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154837#M262787</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-28T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154838#M262788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Arthur! That solved my issues. There's a column in the file that I would like to break it as follows.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4808_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now, the file has Vndr_id_cust column and I would like the vndr_id and cust to be seperated in two columns (e.g: vndr_id and Cust). Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 22:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154838#M262788</guid>
      <dc:creator>AliMN</dc:creator>
      <dc:date>2014-01-28T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading txt file in SAS does not show all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154839#M262789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="811431" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: It would be easiest to do that up front in the data step where you are reading the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.rev;&lt;/P&gt;&lt;P&gt;&amp;nbsp; INFILE "/vendorlst.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp; truncOVER&lt;/P&gt;&lt;P&gt;&amp;nbsp; LRECL=32767&lt;/P&gt;&lt;P&gt;&amp;nbsp; FIRSTOBS=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length id $10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cust $200;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT&amp;nbsp; id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @'- ' cust &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2011&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_2013;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 22:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-txt-file-in-SAS-does-not-show-all-columns/m-p/154839#M262789</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-28T22:50:47Z</dc:date>
    </item>
  </channel>
</rss>

