<?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 text file is not reading correctly. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667293#M79063</link>
    <description>&lt;P&gt;This is working for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data study;
    infile "/folders/myfolders/data.txt"  dsd missover;
    input
Site :$1. Pt :$2. Sex :8. Race :8. Dosedate :mmddyy10. Height :8. Weight :8. Result1 :8. Result2 :8. Result3 :8.;
format Dosedate mmddyy10.;

Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Mainly I added a colon after Dosedate on your input statement.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 20:41:48 GMT</pubDate>
    <dc:creator>ketpt42</dc:creator>
    <dc:date>2020-07-06T20:41:48Z</dc:date>
    <item>
      <title>Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667281#M79059</link>
      <description>&lt;P&gt;Hello everyone, I'm a beginner at SAS, so I am having trouble reading a text file. I dont know how to read this text file because it keeps skipping over the height column in my out put. the code and output are below. any advice? thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Text files looks like this :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;J,08,2,1,02/08/1998,74,280,1.9,4.3,6&lt;/P&gt;&lt;P&gt;J,11,1, ,12/14/1997,66,169,3.5,3.3,5.2&lt;/P&gt;&lt;P&gt;R,16,1,1,12/27/1997,70,233,1.6,1.6&lt;/P&gt;&lt;P&gt;R,09,2,2,12/27/1997,74,387,4.4,1.5,2&lt;/P&gt;&lt;P&gt;J,06,1,2,01/03/1998,64,210,4,4.2,4.4&lt;/P&gt;&lt;P&gt;J,10,1,2,01/03/1998,68,258,10.3,9,5.2&lt;/P&gt;&lt;P&gt;R,15,1,2, ,70,172,6.3&lt;/P&gt;&lt;P&gt;J,07,2,3,01/10/1998,74,177,2.3,3.4,4.5&lt;/P&gt;&lt;P&gt;J,09,2,3,01/11/1998,72,185,1.4,1.4,1.4&lt;/P&gt;&lt;P&gt;J,12,2,3,01/17/1998,76,358,3.9,5,7.6&lt;/P&gt;&lt;P&gt;R,08,2,3,01/24/1998,72,386,4,5.1&lt;/P&gt;&lt;P&gt;R,10,2,3,02/21/1998,62,152,6&lt;/P&gt;&lt;P&gt;J,14,1,3,01/04/1998,69,195,7.8,1.3,5.6&lt;/P&gt;&lt;P&gt;R,24,1,3,02/07/1998,67,212,1.8,2.3,2.3&lt;/P&gt;&lt;P&gt;J,13,1,4,01/31/1998,63,204,4.7,7.3,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Code looks like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data study;
	infile "...." TRUNCOVER;
	input
Site :$1. Pt :$2. Sex :8. Race :8. Dosedate mmddyy10. Height :8. Weight :8. Result1 :8. Result2 :8. Result3 :8.;
format Dosedate mmddyy10.;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-07-06 at 12.32.35 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46954i2A17EE19A36F1993/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-07-06 at 12.32.35 PM.png" alt="Screen Shot 2020-07-06 at 12.32.35 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone know why height isnt being read?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 20:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667281#M79059</guid>
      <dc:creator>ER1C</dc:creator>
      <dc:date>2020-07-06T20:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667282#M79060</link>
      <description>You'll need to post a few lines of the text file. Is it a delimited or a fixed width file?&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jul 2020 19:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667282#M79060</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-07-06T19:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667285#M79061</link>
      <description>&lt;P&gt;post edited!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 20:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667285#M79061</guid>
      <dc:creator>ER1C</dc:creator>
      <dc:date>2020-07-06T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667287#M79062</link>
      <description>&lt;P&gt;J,08,2,1,02/08/1998,74,280,1.9,4.3,6&lt;/P&gt;&lt;P&gt;J,11,1, ,12/14/1997,66,169,3.5,3.3,5.2&lt;/P&gt;&lt;P&gt;R,16,1,1,12/27/1997,70,233,1.6,1.6&lt;/P&gt;&lt;P&gt;R,09,2,2,12/27/1997,74,387,4.4,1.5,2&lt;/P&gt;&lt;P&gt;J,06,1,2,01/03/1998,64,210,4,4.2,4.4&lt;/P&gt;&lt;P&gt;J,10,1,2,01/03/1998,68,258,10.3,9,5.2&lt;/P&gt;&lt;P&gt;R,15,1,2, ,70,172,6.3&lt;/P&gt;&lt;P&gt;J,07,2,3,01/10/1998,74,177,2.3,3.4,4.5&lt;/P&gt;&lt;P&gt;J,09,2,3,01/11/1998,72,185,1.4,1.4,1.4&lt;/P&gt;&lt;P&gt;J,12,2,3,01/17/1998,76,358,3.9,5,7.6&lt;/P&gt;&lt;P&gt;R,08,2,3,01/24/1998,72,386,4,5.1&lt;/P&gt;&lt;P&gt;R,10,2,3,02/21/1998,62,152,6&lt;/P&gt;&lt;P&gt;J,14,1,3,01/04/1998,69,195,7.8,1.3,5.6&lt;/P&gt;&lt;P&gt;R,24,1,3,02/07/1998,67,212,1.8,2.3,2.3&lt;/P&gt;&lt;P&gt;J,13,1,4,01/31/1998,63,204,4.7,7.3,1&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 19:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667287#M79062</guid>
      <dc:creator>ER1C</dc:creator>
      <dc:date>2020-07-06T19:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667293#M79063</link>
      <description>&lt;P&gt;This is working for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data study;
    infile "/folders/myfolders/data.txt"  dsd missover;
    input
Site :$1. Pt :$2. Sex :8. Race :8. Dosedate :mmddyy10. Height :8. Weight :8. Result1 :8. Result2 :8. Result3 :8.;
format Dosedate mmddyy10.;

Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Mainly I added a colon after Dosedate on your input statement.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 20:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667293#M79063</guid>
      <dc:creator>ketpt42</dc:creator>
      <dc:date>2020-07-06T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reading text file is not reading correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667297#M79065</link>
      <description>&lt;P&gt;wow, thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 20:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-text-file-is-not-reading-correctly/m-p/667297#M79065</guid>
      <dc:creator>ER1C</dc:creator>
      <dc:date>2020-07-06T20:44:57Z</dc:date>
    </item>
  </channel>
</rss>

