<?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: For all the Numeric variable if empty replace with Null in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959997#M43131</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/430763"&gt;@animesh123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I am trying to write the output into Flat file but when transferring into flat file am getting .(dot) am trying to replace with null value&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the code you used to write the file.&amp;nbsp; Explain the layout you want in the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note if you are writing a delimited file then the PUT statement should already be writing "null" (that is nothing at all) for missing values.&amp;nbsp; If it is writing whatever character you set with the MISSING option instead then you probably forgot to include the DSD option in the FILE statement.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2025 18:51:37 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-02-22T18:51:37Z</dc:date>
    <item>
      <title>For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959955#M43120</link>
      <description>&lt;P&gt;is there way to find&amp;nbsp; all the Numeric variable and if obs is empty or . (dot), i want to replace all with Null value in one go&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 20:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959955#M43120</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2025-02-21T20:47:27Z</dc:date>
    </item>
    <item>
      <title>Getting wrong output if blank value  for numeric field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959953#M43127</link>
      <description>&lt;P&gt;I have dataset where the column is integer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;while writing this into flat file or in sasdataset i am getting .(dot) instead of populating null value,&lt;/P&gt;
&lt;P&gt;same dataset when exporting into excel&amp;nbsp; &amp;nbsp;using sas eg in there its coming blank&lt;/P&gt;
&lt;P&gt;is there way to fix this to populate only Null for integer value rather than .(dot) also the same in text file where am writing into flat/text file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="animesh123_0-1740170039339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104844iCD32A2DC5CA0C86D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="animesh123_0-1740170039339.png" alt="animesh123_0-1740170039339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 20:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959953#M43127</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2025-02-21T20:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959961#M43121</link>
      <description>Hi:&lt;BR /&gt;  If you want to display a blank instead of a . for a missing numeric variable value, this is possible by using the MISSING= system option.&lt;BR /&gt;  However, SAS internally stores missing values for numeric variables as a period/dot -- this is the internal representation of a missing value. SAS does not have the same concept of null values that you find in some databases or in a language like COBOL.  I suggest you clarify what you mean by null values and where you want to change the values -- in an output report or in stored SAS data values.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 21 Feb 2025 20:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959961#M43121</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-02-21T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959964#M43122</link>
      <description>I am trying to write the output into Flat file but when transferring into flat file  am getting .(dot) am trying to replace with null value</description>
      <pubDate>Fri, 21 Feb 2025 21:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959964#M43122</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2025-02-21T21:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959966#M43123</link>
      <description>NUll value means blank value</description>
      <pubDate>Fri, 21 Feb 2025 21:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959966#M43123</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2025-02-21T21:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959968#M43124</link>
      <description>&lt;P&gt;Add this OPTIONS statement to the start of your program to write out blanks instead of dots in your flat file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing = ' ';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2025 21:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959968#M43124</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-02-21T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong output if blank value  for numeric field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959976#M43128</link>
      <description>&lt;P&gt;I do not understand what you are saying.&amp;nbsp; &amp;nbsp;Actual data examples would help much more than photographs to explain what you are asking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS a MISSING numeric value (which what I assume you mean by NULL) is represented in CODE by a period.&amp;nbsp; &amp;nbsp;SAS also allows 27 other (special) missing values that are represented in CODE as a period followed by a single letter or the underscore character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS will treat character variables that only contain spaces a missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When writing a numeric value to a text file using the default numeric format a normal missing value is represented by the character set with the MISSING= option.&amp;nbsp; The default character used by the missing option is a period.&amp;nbsp; Special missing values will be printed as letter used to represent them in the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When reading either a numeric or a character variable from a text file into SAS variables using the normal numeric or character informat a single period will be converted to a MISSING value.&amp;nbsp; To allow single letters to be read by the normal numeric informat as special missing values list those letters (or underscore) in the MISSING statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0ueqauvtyb2hqn1mj79t26azlxv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0ueqauvtyb2hqn1mj79t26azlxv.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note also that when writing a text file use the DSD option on the FILE statement then missing values will take NO space in the text file.&amp;nbsp; The delimiters will be placed right next to each other.&amp;nbsp; To treat adjacent delimiters as indicating a missing value when reading a delimited text file make sure to include the DSD option on the INFILE statement.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 23:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959976#M43128</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-21T23:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong output if blank value  for numeric field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959988#M43129</link>
      <description>&lt;P&gt;Are&amp;nbsp; you asking to see text that actually says NULL? &lt;/P&gt;
&lt;P&gt;That would require custom formats to associate missing values, by default displayed with the dot, and might be a little bit tricky depending on individual variable attributes such as existing formats.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 09:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959988#M43129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-02-22T09:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong output if blank value  for numeric field</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959991#M43130</link>
      <description>&lt;P&gt;I combined your posts dealing with the same issue.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 10:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959991#M43130</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-02-22T10:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: For all the Numeric variable if empty replace with Null</title>
      <link>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959997#M43131</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/430763"&gt;@animesh123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I am trying to write the output into Flat file but when transferring into flat file am getting .(dot) am trying to replace with null value&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the code you used to write the file.&amp;nbsp; Explain the layout you want in the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note if you are writing a delimited file then the PUT statement should already be writing "null" (that is nothing at all) for missing values.&amp;nbsp; If it is writing whatever character you set with the MISSING option instead then you probably forgot to include the DSD option in the FILE statement.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 18:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/For-all-the-Numeric-variable-if-empty-replace-with-Null/m-p/959997#M43131</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-22T18:51:37Z</dc:date>
    </item>
  </channel>
</rss>

