<?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: Convert proc tabulate to proc report and show each value of class varaible in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679672#M205259</link>
    <description>&lt;P&gt;This questions seems to be related to &lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816&lt;/A&gt;. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12477"&gt;@RichardDeVen&lt;/a&gt; provided a solution with proc report in the other thread. Why was it not acceptable?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 09:43:19 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-08-27T09:43:19Z</dc:date>
    <item>
      <title>Convert proc tabulate to proc report and show each value of class varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679656#M205252</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the way to convert this proc tabulate code into proc report?&lt;/P&gt;
&lt;P&gt;There is only one change in the required output.&lt;/P&gt;
&lt;P&gt;I want that in each row in output there will be value of Origin.&lt;/P&gt;
&lt;P&gt;The reason is that the real report is very long and it is difficult for users to see what is the origin value for each row.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc tabulate data =SASHelp.cars(where=( Origin in ('Asia' ,'Europe')
and  Type in ('Hybrid','Suv','Sedan')))
 format=comma21.;
Class Origin  Make  Cylinders   Type  ;
Var Invoice;
Table Origin=""*Make='',
Type='Nr Customers'*(Cylinders='' All)*N=''  
all=''*N='TOTAL'

Type='Total Revenue'*(Cylinders='' All)*SUM=''*Invoice=''  
all=''*Invoice='TOTAL'
/box='Make/Origin' misstext='0'  nocellmerge;
format  Cylinders fCylinders.;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 07:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679656#M205252</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-08-27T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert proc tabulate to proc report and show each value of class varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679672#M205259</link>
      <description>&lt;P&gt;This questions seems to be related to &lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/proc-tabulate/m-p/678816&lt;/A&gt;. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12477"&gt;@RichardDeVen&lt;/a&gt; provided a solution with proc report in the other thread. Why was it not acceptable?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 09:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679672#M205259</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-27T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert proc tabulate to proc report and show each value of class varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679692#M205266</link>
      <description>&lt;P&gt;Though it is not what you asked (converting to proc report) but it may fit your needs,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please check next code and result:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=SASHelp.cars(where=( Origin in ('Asia' ,'Europe') and  
                                Type in ('Hybrid','Sedan')))
             nway    missing ;
	 Class Origin  Make  Type Cylinders ;
	 Var Invoice;
	 output out=summed(drop=_type_ rename=(_freq_=Nr_Customers)) n=cyl sum=inv;
	 format  Cylinders fCylinders.;
run;
Proc tabulate data =summed;
	Class Origin  Make  Cylinders   Type  ;
	Var cyl inv;
	Table Origin=""*Make=''*type="",
	(All='Total' Cylinders)*(cyl='Nr. Customers' inv='Invoice')*sum=''*f=comma21.
	/box='Make/Origin/Type' misstext='0'  nocellmerge;
	
	format  Cylinders fCylinders.;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Aug 2020 12:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-proc-tabulate-to-proc-report-and-show-each-value-of/m-p/679692#M205266</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-27T12:21:09Z</dc:date>
    </item>
  </channel>
</rss>

