<?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 convert missing value to &amp;quot;.&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740075#M231115</link>
    <description>&lt;P&gt;Thanks for the code! I was using Proc Report as I have another text output where null numeric is blank instead of period. Now I learn new thing using data step which is very useful.&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 03:25:36 GMT</pubDate>
    <dc:creator>irene_o</dc:creator>
    <dc:date>2021-05-10T03:25:36Z</dc:date>
    <item>
      <title>How to convert missing value to "."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740042#M231098</link>
      <description>&lt;P&gt;I need to output the data to text file but the missing value must be converted to "." . I have tried to use option missing but it's the same (.) as null value, thus the output still blank instead of (.) . Please help. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;temp_data:&lt;/P&gt;&lt;P&gt;Model&amp;nbsp; &amp;nbsp;Type&amp;nbsp; &amp;nbsp;Month_1&amp;nbsp; &amp;nbsp;Month_2&amp;nbsp; &amp;nbsp;Month_3&amp;nbsp; Month_4&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp;FIRE&amp;nbsp; &amp;nbsp;123.4&amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp;56.7&amp;nbsp; &amp;nbsp;23.86&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp;FIRE&amp;nbsp; &amp;nbsp;2349&amp;nbsp; &amp;nbsp;35.3&amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 234.8&amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;text file:&lt;/P&gt;&lt;P&gt;A|FIRE|123.4|5|56.7|23.86&lt;/P&gt;&lt;P&gt;B|FIRE|2349|35.3|.|.&lt;/P&gt;&lt;P&gt;C||234.8|.|.|.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;option missing = '.' ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;proc export data=temp_data&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;outfile="&amp;amp;path"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;dbms=dlm replace;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;putnames=no;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;delimiter="|";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 11:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740042#M231098</guid>
      <dc:creator>irene_o</dc:creator>
      <dc:date>2021-05-09T11:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing value to "."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740043#M231099</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/381360"&gt;@irene_o&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The periods for numeric missing values (and the blanks for missing character values) are suppressed by the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n15o12lpyoe4gfn1y1vcp6xs6966.htm#n1ckqb7ej5xd6hn13ufvkf2vobhp" target="_blank" rel="noopener"&gt;DSD option&lt;/A&gt; of the FILE statement in the DATA step code that PROC EXPORT generates.&amp;nbsp;Write your own DATA step to take control over the options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file "&amp;amp;path" dlm='|';
set temp_data;
put (_all_)(:);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 11:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740043#M231099</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-05-09T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing value to "."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740049#M231103</link>
      <description>&lt;P&gt;Why?&amp;nbsp; What is it that is going to read this file that does not understand that adjacent delimiters means the value is missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are writing a delimited file without a header line there is NO reason to use PROC EXPORT.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is easier to just write the data step to create the text file yourself. In which case you a tweak the code for whatever non-standard format your text file needs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set temp_data ;
  file "&amp;amp;path" dlm='|';
  put (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 May 2021 15:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740049#M231103</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-09T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing value to "."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740074#M231114</link>
      <description>&lt;P&gt;The code works perfectly. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 02:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740074#M231114</guid>
      <dc:creator>irene_o</dc:creator>
      <dc:date>2021-05-10T02:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing value to "."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740075#M231115</link>
      <description>&lt;P&gt;Thanks for the code! I was using Proc Report as I have another text output where null numeric is blank instead of period. Now I learn new thing using data step which is very useful.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 03:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-missing-value-to-quot-quot/m-p/740075#M231115</guid>
      <dc:creator>irene_o</dc:creator>
      <dc:date>2021-05-10T03:25:36Z</dc:date>
    </item>
  </channel>
</rss>

