<?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 how to deal with the blank when input data? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21480#M4546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for repling late.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for great help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Oct 2011 23:34:46 GMT</pubDate>
    <dc:creator>littlestone</dc:creator>
    <dc:date>2011-10-02T23:34:46Z</dc:date>
    <item>
      <title>how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21473#M4539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I input just one variable Var:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Data Test;&lt;/P&gt;&lt;P&gt;Informat Var $10.;&lt;/P&gt;&lt;P&gt;input Var;&lt;/P&gt;&lt;P&gt;Cards;&lt;/P&gt;&lt;P&gt;abcdefg&lt;/P&gt;&lt;P&gt;ab cdefg&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;abcdefg&lt;/P&gt;&lt;P&gt;ab&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that the informat does not work for records 2 in which only the first two characters were recognized because the third character is a blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to let SAS know that the blank character is also part of the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 15:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21473#M4539</guid>
      <dc:creator>littlestone</dc:creator>
      <dc:date>2011-09-30T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21474#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;input @001 var $char10.;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as long as the data lines start in cc01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21474#M4540</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-09-30T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21475#M4541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also add &amp;amp; after VAR in INPUT statement.&amp;nbsp; INPUT VAR &amp;amp;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should read about LIST, FORMATTED, COLUMN and NAMED input to understand the nuances of the INPUT statement and the interaction of INFORMAT INPUT and INFILE etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21475#M4541</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-09-30T16:22:16Z</dc:date>
    </item>
    <item>
      <title>how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21476#M4542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for helping me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way: what is the difference between &lt;STRONG&gt;input @1&lt;/STRONG&gt; and &lt;STRONG&gt;input @001&lt;/STRONG&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 18:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21476#M4542</guid>
      <dc:creator>littlestone</dc:creator>
      <dc:date>2011-09-30T18:10:45Z</dc:date>
    </item>
    <item>
      <title>how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21477#M4543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 18:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21477#M4543</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-09-30T18:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21478#M4544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No difference.&amp;nbsp; They might have used the extra zeros to just make the code look more consistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INPUT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @001 var1 $120.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; @121 var2 5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 18:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21478#M4544</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-09-30T18:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21479#M4545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use a helpful informat $varying.Such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp;&lt;/P&gt;&lt;P&gt;infile datalines length=len;&lt;/P&gt;&lt;P&gt;input var $varying200. len;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 08:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21479#M4545</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-02T08:49:10Z</dc:date>
    </item>
    <item>
      <title>how to deal with the blank when input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21480#M4546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for repling late.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for great help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 23:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-deal-with-the-blank-when-input-data/m-p/21480#M4546</guid>
      <dc:creator>littlestone</dc:creator>
      <dc:date>2011-10-02T23:34:46Z</dc:date>
    </item>
  </channel>
</rss>

