<?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 Not working properly appended dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523765#M142345</link>
    <description>&lt;P&gt;In case you want to mimic the PROC PRINT output in PROC REPORT you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=GDW;
   column _all_;
   define _all_ / display;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This prevents the use of the numeric columns as analysis so there will be no statistic applied, just rows with values will be displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,-- Jan.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 15:09:45 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2018-12-28T15:09:45Z</dc:date>
    <item>
      <title>PROC REPORT Not working properly appended dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523762#M142343</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below code, my intention is very simple that I want to report the output table which got generated by PROC APPEND. Its working fine when using proc print but when we are using proc report tool , its generating the sum&amp;nbsp; of the all the values(all are numeric in existing data set) as a single observation. I am not sure the reason behind this weird behavior of PROC REPORT.&lt;/P&gt;&lt;P&gt;Below attached code and sample output, Please share your thought ....??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro report;
%do I=1 %to 2;
proc append base=GDW data=dummy.count&amp;amp;I ;
run; 
%end;
%mend;
%report;

proc print data=GDW;
run;

proc report data=GDW;
column _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25906i422706369FBA9BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Dec 2018 14:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523762#M142343</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2018-12-28T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Not working properly appended dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523764#M142344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you deem weird is the default behaviour of proc report. Numeric variables are analysis variables and the default statistic is SUM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need different output, read &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0bqogcics9o4xn17yvt2qjbgdpi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;the docs &lt;/A&gt;and add statements for grouping and displaying values, subtotalling and/or&lt;/P&gt;
&lt;P&gt;statistics. Keep in mind that REPORT is a very powerful procedure but takes some effort to get the output you desire.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 15:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523764#M142344</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-12-28T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Not working properly appended dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523765#M142345</link>
      <description>&lt;P&gt;In case you want to mimic the PROC PRINT output in PROC REPORT you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=GDW;
   column _all_;
   define _all_ / display;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This prevents the use of the numeric columns as analysis so there will be no statistic applied, just rows with values will be displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,-- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 15:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Not-working-properly-appended-dataset/m-p/523765#M142345</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-12-28T15:09:45Z</dc:date>
    </item>
  </channel>
</rss>

