<?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: Proc Report-Show also categories with no data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626058#M184592</link>
    <description>&lt;P&gt;Use Completerows Option in the PROC REPORT Statement and Preloadfmt in the appropriate Define Statement like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT DATA=sashelp.CARS NOWD OUT=MyFirstReport completerows;
COLUMNS Type Origin INVOICE=Max_INVOICE INVOICE=Mean_Invoice 
INVOICE=Count_Invoice TEST DriveTrain;
DEFINE Type / Group 'Type of Car' CENTER;
DEFINE Origin / Group 'Origin of Car' CENTER format=$ffmt. preloadfmt;
DEFINE Max_Invoice / ANALYSIS MAX 'Max of Invoice';
DEFINE Mean_Invoice / ANALYSIS MEAN 'Mean of Invoice';
DEFINE Count_Invoice / ANALYSIS N FORMAT=5.0 'Total Number of Cars' center;
DEFINE DriveTrain / ACROSS 'Type of DriveTrain of Car';
DEFINE TEST / COMPUTED 'Number of Cars &amp;gt; Mean(Invoice)' center;
COMPUTE TEST;
     TEST=N(_c7_&amp;gt;Mean_Invoice);
ENDCOMP;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 Feb 2020 06:32:05 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-02-20T06:32:05Z</dc:date>
    <item>
      <title>Proc Report-Show also categories with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626056#M184590</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using user defined format in proc report.&lt;/P&gt;
&lt;P&gt;I want to see in summary report also categories from proc format that have no data.&lt;/P&gt;
&lt;P&gt;So in this example I want that the summary report will include also information about 'China'.&lt;/P&gt;
&lt;P&gt;What is the way to do it with proc report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $ffmt
Europe,USA='Europe_USA'
Asia='Asia_without_China'
China='China'
;
Run;

PROC REPORT DATA=sashelp.CARS NOWD OUT=MyFirstReport;
COLUMNS Type Origin INVOICE=Max_INVOICE INVOICE=Mean_Invoice 
INVOICE=Count_Invoice TEST DriveTrain;
DEFINE Type / Group 'Type of Car' CENTER;
DEFINE Origin / Group 'Origin of Car' CENTER format=$ffmt.;
DEFINE Max_Invoice / ANALYSIS MAX 'Max of Invoice';
DEFINE Mean_Invoice / ANALYSIS MEAN 'Mean of Invoice';
DEFINE Count_Invoice / ANALYSIS N FORMAT=5.0 'Total Number of Cars' center;
DEFINE DriveTrain / ACROSS 'Type of DriveTrain of Car';
DEFINE TEST / COMPUTED 'Number of Cars &amp;gt; Mean(Invoice)' center;
COMPUTE TEST;
     TEST=N(_c7_&amp;gt;Mean_Invoice);
ENDCOMP;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 06:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626056#M184590</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-02-20T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report-Show also categories with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626058#M184592</link>
      <description>&lt;P&gt;Use Completerows Option in the PROC REPORT Statement and Preloadfmt in the appropriate Define Statement like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT DATA=sashelp.CARS NOWD OUT=MyFirstReport completerows;
COLUMNS Type Origin INVOICE=Max_INVOICE INVOICE=Mean_Invoice 
INVOICE=Count_Invoice TEST DriveTrain;
DEFINE Type / Group 'Type of Car' CENTER;
DEFINE Origin / Group 'Origin of Car' CENTER format=$ffmt. preloadfmt;
DEFINE Max_Invoice / ANALYSIS MAX 'Max of Invoice';
DEFINE Mean_Invoice / ANALYSIS MEAN 'Mean of Invoice';
DEFINE Count_Invoice / ANALYSIS N FORMAT=5.0 'Total Number of Cars' center;
DEFINE DriveTrain / ACROSS 'Type of DriveTrain of Car';
DEFINE TEST / COMPUTED 'Number of Cars &amp;gt; Mean(Invoice)' center;
COMPUTE TEST;
     TEST=N(_c7_&amp;gt;Mean_Invoice);
ENDCOMP;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 06:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626058#M184592</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-20T06:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report-Show also categories with no data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626119#M184628</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;Did this work for you? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 12:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Show-also-categories-with-no-data/m-p/626119#M184628</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-20T12:03:28Z</dc:date>
    </item>
  </channel>
</rss>

