<?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: How to differentiate between blank space character &amp; null value while reading from a file. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213952#M5091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File format is important here and how the data set is read. When using list input blanks are delimiters and options control what may or may not be missing.&lt;/P&gt;&lt;P&gt;Is your data delimited or fixed column?&lt;/P&gt;&lt;P&gt;How are you reading it?&lt;/P&gt;&lt;P&gt;It may be helpful to provide some example rows of data with the issue you are having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some common options that address bits of this kind of issue are DLM (or Delimiter) , DSD, RECFM plus options on Input statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 15:22:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-06-25T15:22:32Z</dc:date>
    <item>
      <title>How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213950#M5089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS treats Blank space as missing values . In order to distinguish between blank space character and null value while reading from job how to manage it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 15:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213950#M5089</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2015-06-25T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213951#M5090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said it yourself, SAS treats blank as missing/null, so basically, you can't (since there is no difference).&lt;/P&gt;&lt;P&gt;If your source data resides in a DBMS that distinguish between NULL and blank, you coud do a SQL pass-thru query where you test this in the source.&lt;/P&gt;&lt;P&gt;What's your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 15:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213951#M5090</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-06-25T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213952#M5091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File format is important here and how the data set is read. When using list input blanks are delimiters and options control what may or may not be missing.&lt;/P&gt;&lt;P&gt;Is your data delimited or fixed column?&lt;/P&gt;&lt;P&gt;How are you reading it?&lt;/P&gt;&lt;P&gt;It may be helpful to provide some example rows of data with the issue you are having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some common options that address bits of this kind of issue are DLM (or Delimiter) , DSD, RECFM plus options on Input statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 15:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213952#M5091</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-25T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213953#M5092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the source is a fixed width file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213953#M5092</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2015-06-25T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213954#M5093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no my source is a fixed width file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213954#M5093</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2015-06-25T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to differentiate between blank space character &amp; null value while reading from a file.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213955#M5094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you have a fixed width file how would it be possible to have an empty field?&amp;nbsp; To make it fixed width there has to be some character in those columns of the file.&lt;/P&gt;&lt;P&gt;If you use $CHAR informat instead of the default $ informat for character variables then periods in the source file will not be translated to blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input id 3. sex $char1. age 3. ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;001M010&lt;/P&gt;&lt;P&gt;002F012&lt;/P&gt;&lt;P&gt;003.011&lt;/P&gt;&lt;P&gt;004 013&lt;/P&gt;&lt;P&gt;;;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-differentiate-between-blank-space-character-null-value/m-p/213955#M5094</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-25T17:03:14Z</dc:date>
    </item>
  </channel>
</rss>

