<?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 period as missing character in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55766#M15574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use $char informat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input&amp;nbsp; var$char1.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 15:25:59 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2012-04-04T15:25:59Z</dc:date>
    <item>
      <title>period as missing character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55763#M15571</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;&amp;nbsp; I want to read some characters into SAS from a text file. One record has a value '. ' which is a period followed by a space. However, SAS read treat it as missing. My understanding is that period is treated as missing for numeric but&amp;nbsp; not for character. So why this is the case and how to read a value like that as it is? For example, if this is my input file mydoc.txt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;this is my SAS:&lt;/SPAN&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;data mydoc;&lt;BR /&gt;infile 'mydoc.txt';&lt;BR /&gt;input val$;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=mydoc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; obs val&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;BR /&gt;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&lt;/P&gt;&lt;P&gt;﻿Any suggestions?&lt;/P&gt;&lt;P&gt;﻿Thanks,&lt;/P&gt;&lt;P&gt;﻿Peter&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55763#M15571</guid>
      <dc:creator>tradepeter</dc:creator>
      <dc:date>2012-04-04T14:39:28Z</dc:date>
    </item>
    <item>
      <title>period as missing character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55764#M15572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001336075.htm"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001336075.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55764#M15572</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-04-04T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: period as missing character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55765#M15573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the $CHAR informat.&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 check;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input @1 x $1. @1 y $char1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put x= y=;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=&amp;nbsp; y=.&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55765#M15573</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-04-04T15:24:18Z</dc:date>
    </item>
    <item>
      <title>period as missing character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55766#M15574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use $char informat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input&amp;nbsp; var$char1.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/period-as-missing-character/m-p/55766#M15574</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-04-04T15:25:59Z</dc:date>
    </item>
  </channel>
</rss>

