<?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: Filling Zeros where data is null in proc tabulate. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853952#M37582</link>
    <description>&lt;P&gt;Set&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before running TABULATE.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 07:26:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-01-16T07:26:55Z</dc:date>
    <item>
      <title>Filling Zeros where data is null in proc tabulate.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853951#M37581</link>
      <description>&lt;P&gt;I am working on proc tabulate and I want to fill all the null entry cell with zeros what should I do.&lt;/P&gt;
&lt;P&gt;Following is the code and ss of the result while i used proc tabulate.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=DST_EMP3 out= F1 (drop=_TYPE_ _PAGE_ _TABLE_);
  class EMP_CODE DATE_OF_APPROVAL;
  table EMP_CODE, DATE_OF_APPROVAL;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want where data is showing .(dot) it should be replaced by 0(zero).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kirito1_0-1673853728401.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79419i650379D2CAD69C11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kirito1_0-1673853728401.png" alt="Kirito1_0-1673853728401.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 07:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853951#M37581</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-01-16T07:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Zeros where data is null in proc tabulate.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853952#M37582</link>
      <description>&lt;P&gt;Set&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before running TABULATE.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 07:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853952#M37582</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-16T07:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Zeros where data is null in proc tabulate.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853953#M37583</link>
      <description>&lt;P&gt;Add the following line of code before your Proc Tabulate&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing='0';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Alternatively if you don't want to change this globally something like below would also work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value missingToZero
    .='0'
    ;
run;

proc tabulate data=DST_EMP3 out= F1 (drop=_TYPE_ _PAGE_ _TABLE_);
  class EMP_CODE DATE_OF_APPROVAL;
  table EMP_CODE, DATE_OF_APPROVAL*f=missingToZero.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 07:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filling-Zeros-where-data-is-null-in-proc-tabulate/m-p/853953#M37583</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-16T07:35:40Z</dc:date>
    </item>
  </channel>
</rss>

