<?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 Unable to read the all statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937708#M368438</link>
    <description>&lt;P&gt;data my;&lt;BR /&gt;input details $ 1-100;&lt;BR /&gt;cards;&lt;BR /&gt;I am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John.&lt;BR /&gt;I studied from&amp;nbsp; &amp;nbsp; &amp;nbsp; MM University&lt;BR /&gt;I have&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done MBA&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the ouput as below. but it is not reading the data properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;details&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John.&lt;BR /&gt;I studied from&amp;nbsp; &amp;nbsp; &amp;nbsp; MM University&lt;BR /&gt;I have&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done MBA&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 05:16:52 GMT</pubDate>
    <dc:creator>ravi999985</dc:creator>
    <dc:date>2024-07-31T05:16:52Z</dc:date>
    <item>
      <title>Unable to read the all statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937708#M368438</link>
      <description>&lt;P&gt;data my;&lt;BR /&gt;input details $ 1-100;&lt;BR /&gt;cards;&lt;BR /&gt;I am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John.&lt;BR /&gt;I studied from&amp;nbsp; &amp;nbsp; &amp;nbsp; MM University&lt;BR /&gt;I have&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done MBA&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the ouput as below. but it is not reading the data properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;details&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John.&lt;BR /&gt;I studied from&amp;nbsp; &amp;nbsp; &amp;nbsp; MM University&lt;BR /&gt;I have&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;done MBA&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 05:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937708#M368438</guid>
      <dc:creator>ravi999985</dc:creator>
      <dc:date>2024-07-31T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read the all statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937710#M368439</link>
      <description>&lt;PRE&gt;data my;
infile cards truncover;
input details $ 1-100;
cards;
I am                       John.
I studied from      MM University
I have             done MBA
;
run;

&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jul 2024 06:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937710#M368439</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-31T06:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read the all statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937749#M368448</link>
      <description>&lt;P&gt;Pay attention to what SAS tells you in the SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.MY has 1 observations and 1 variables.
&lt;/PRE&gt;
&lt;P&gt;Since in-line data is padded to the next multiple of 80 bytes trying to read 100 bytes from a line that only has 80 bytes is what is causing SAS to move to a new line to try and find enough data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can prevent that by adding an INFILE statement so you can add the TRUNCOVER option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data my;
  infile cards truncover;
  input details $ 1-100;
cards;
I am                       John.
I studied from      MM University
I have             done MBA
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs                 details

 1     I am                       John.
 2     I studied from      MM University
 3     I have             done MBA

&lt;/PRE&gt;
&lt;P&gt;Note that this is a good example of why you almost never want to use the ancient MISSOVER option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it with MISSOVER instead of TRUNCOVER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data my;
  infile cards missover;
  input details $ 1-100;
cards;
I am                       John.
I studied from      MM University
I have             done MBA
;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs    details

 1
 2
 3
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 12:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-read-the-all-statements/m-p/937749#M368448</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-31T12:34:36Z</dc:date>
    </item>
  </channel>
</rss>

