<?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: summary statistics in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313955#M61517</link>
    <description>&lt;PRE&gt;



data have;
infile cards truncover expandtabs;
input customerid	pricing01	pricing02	pricing03;
cards;
12345	200	300	240
12345	200	300	240
123	100	300	626
121	200	300	721
126	150	400	666
;
run;

proc transpose data=have(keep=pricing: obs=0) out=temp;
run;
data temp;
 set temp;
 retain n -2;
 n=n+3;
run;

data _null_;
 set temp end=last;
 if _n_=1 then call execute('proc sql;create table want as ');
 call execute(cat('select ',n,' as x,"cnt_id" as a length=12,"',
 _name_,'" as b length=12 from have(obs=1) union select ',n+1,
 ',put(count(customerid),best8. -l),put(',_name_,',best8. -l) from have group by ',
 _name_));
if not last then call execute(cat('union select ',n+2,'," "," " from have(obs=1) union'));
else call execute(';quit;');
run;
proc report data=want nowd noheader;
column a b;
run;


&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Nov 2016 04:28:58 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-11-24T04:28:58Z</dc:date>
    <item>
      <title>summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313626#M61504</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;I have a dataset xyz &amp;nbsp;like below which has customer id and pricing attributes . I want to check how many ids are assigned 200 of pricing 01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the report should be like for example and can i write a loop for this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="128" style="width: 96pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL width="64" style="width: 48pt;" span="2" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD width="64" height="20" style="border: 0.5pt solid windowtext; border-image: none; width: 48pt; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="64" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black; width: 48pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing01&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;3&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;200&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;100&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;150&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing02&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;300&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;400&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing03&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;2&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;240&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;626&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;721&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;666&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="274"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="82"&gt;customerid&lt;/TD&gt;
&lt;TD width="64"&gt;pricing01&lt;/TD&gt;
&lt;TD width="64"&gt;pricing02&lt;/TD&gt;
&lt;TD width="64"&gt;pricing03&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;12345&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;TD&gt;240&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;12345&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;TD&gt;240&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;123&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;TD&gt;626&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;121&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;TD&gt;721&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;126&lt;/TD&gt;
&lt;TD&gt;150&lt;/TD&gt;
&lt;TD&gt;400&lt;/TD&gt;
&lt;TD&gt;666&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 23 Nov 2016 01:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313626#M61504</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-23T01:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313629#M61505</link>
      <description>&lt;P&gt;Do you require the non-sorted order of pricing values within each pricing group?&amp;nbsp; It appears you want the same order as the values are first encountered, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 01:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313629#M61505</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-11-23T01:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313631#M61506</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;Any order of pricing values should be fine but i need how many ids when pricing01 is 200 and how many i have when pricing01 is 100 and how maany ids i have when pricing01 is 150 same way for pricing02&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 01:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313631#M61506</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-23T01:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313648#M61510</link>
      <description>&lt;PRE&gt;
How about this one.



data have;
infile cards truncover expandtabs;
input customerid	pricing01	pricing02	pricing03;
cards;
12345	200	300	240
12345	200	300	240
123	100	300	626
121	200	300	721
126	150	400	666
;
run;



proc sql;
create table want as
select 1 as x,'cnt_id' as a length=12,'pricing01' as b length=12
 from have(obs=1)
union
select 2,put(count(customerid),best8. -l) ,
       put(pricing01,best8. -l)
 from have
  group by pricing01 
union
select 3,' ',' '
 from have(obs=1)
union
select 4 as x,'cnt_id' as a length=12,'pricing02' as b length=12
 from have(obs=1)
union
select 5,put(count(customerid),best8. -l) ,
       put(pricing02,best8. -l)
 from have
  group by pricing02 
union
select 6,' ',' '
 from have(obs=1)
union
select 7 as x,'cnt_id' as a length=12,'pricing03' as b length=12
 from have(obs=1)
union
select 8,put(count(customerid),best8. -l) ,
       put(pricing03,best8. -l)
 from have
  group by pricing03 
 ;
quit;
proc report data=want nowd noheader;
column a b;
run;


&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2016 03:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313648#M61510</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-23T03:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313765#M61514</link>
      <description>&lt;P&gt;Let PROC FREQ do the work.&amp;nbsp; This program has "ORDER=DATA" which present counts in order that the values appear.&amp;nbsp; Take it out&amp;nbsp; if you want ascending order for each variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If you want results to go somewhere other than the log, put a FILE statement in the data step.&lt;/LI&gt;
&lt;LI&gt;You might to drop the "NOPRINT" option to see what proc freq prints directly.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input customerid pricing01 pricing02 pricing03 ;
datalines;
12345 200 300 240 
12345 200 300 240 
123 100 300 626 
121 200 300 721 
126 150 400 666 
run;

proc freq data=have order=data noprint;
  table pricing01 / out=priceing01 ;
  table pricing02 / out=priceing02 ;
  table pricing03 / out=priceing03 ;
run;
data _null_;
  set priceing: indsname=inw;

  array prc{*} pricing: ;
  if inw^=lag(inw) then do;
     p+1;
     vnam=vname(prc{p});
     put 'CNT_ID '  vnam;
  end;
  put count 6. +3 prc{p} 3.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313765#M61514</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-11-23T13:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313779#M61515</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;BR /&gt;Can I get something easy code like &lt;BR /&gt;Proc sql;&lt;BR /&gt;create table xy as &lt;BR /&gt; select count(customerid),&lt;BR /&gt;pricing01&lt;BR /&gt;from xyz&lt;BR /&gt;group by pricing01&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;but I have 100's of variables so I want this to be in macro so that each time when it loops it would create a table for each pricing item&lt;/P&gt;
&lt;P&gt;and can we use proc summary for the report to look in the format the mentioned&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313779#M61515</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-23T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313955#M61517</link>
      <description>&lt;PRE&gt;



data have;
infile cards truncover expandtabs;
input customerid	pricing01	pricing02	pricing03;
cards;
12345	200	300	240
12345	200	300	240
123	100	300	626
121	200	300	721
126	150	400	666
;
run;

proc transpose data=have(keep=pricing: obs=0) out=temp;
run;
data temp;
 set temp;
 retain n -2;
 n=n+3;
run;

data _null_;
 set temp end=last;
 if _n_=1 then call execute('proc sql;create table want as ');
 call execute(cat('select ',n,' as x,"cnt_id" as a length=12,"',
 _name_,'" as b length=12 from have(obs=1) union select ',n+1,
 ',put(count(customerid),best8. -l),put(',_name_,',best8. -l) from have group by ',
 _name_));
if not last then call execute(cat('union select ',n+2,'," "," " from have(obs=1) union'));
else call execute(';quit;');
run;
proc report data=want nowd noheader;
column a b;
run;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Nov 2016 04:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/313955#M61517</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-24T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315361#M61631</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;The code worked perfectly but it works only when i have few records in 1000 but when i have 2 lakh records in the data set have&lt;/P&gt;
&lt;P&gt;the below step is taking very long time is there any other other code so that it takes very less time&amp;nbsp; Can u please help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;data _null_;&lt;BR /&gt; set temp end=last;&lt;BR /&gt; if _n_=1 then call execute('proc sql;create table want as ');&lt;BR /&gt; call execute(cat('select ',n,' as x,"cnt_id" as a length=12,"',&lt;BR /&gt; _name_,'" as b length=12 from have(obs=1) union select ',n+1,&lt;BR /&gt; ',put(count(customerid),best8. -l),put(',_name_,',best8. -l) from have group by ',&lt;BR /&gt; _name_));&lt;BR /&gt;if not last then call execute(cat('union select ',n+2,'," "," " from have(obs=1) union'));&lt;BR /&gt;else call execute(';quit;');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all your help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 23:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315361#M61631</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-29T23:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315362#M61632</link>
      <description>&lt;P&gt;as we are using group by for a large dataset its taking time can u pls help if there is an efficient way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 22:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315362#M61632</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-29T22:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315446#M61644</link>
      <description>&lt;PRE&gt;
Sorry.
I think time is wasted on PUT().
Do you have to make a table contain these, which make variable have to be character type.
Can't you just create a report to get it ?Like:
proc sql;
select count(*) as cust_id,price_01
 from have
  group by price_01
union all
select count(*) as cust_id,price_02
 from have
  group by price_02
..................................


Another way is using proc means/proc freq ,
But that need make a macro firstly and need more code too.

Or IML code if your memory is big enough.


&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315446#M61644</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-30T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315530#M61645</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It seems to me that PROC TABULATE and transposed data might be better suited and faster. For example, TABULATE can produce this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6128i13F972D7F67AB2EE/image-size/original?v=v2&amp;amp;px=-1" alt="count_each_value.png" title="count_each_value.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;no matter how many variables named "pricingxx" you have -- once the data is transposed. If the variables aren't named the same, you might have a little more to declare in the array statement, but as of now, I don't see that a macro is necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data start;
  infile datalines;
  input customerid 	pricing01 	pricing02 	pricing03;
return;
datalines;
12345 	200 	300 	240
12345 	200 	300 	240
123 	100 	300 	626
121 	200 	300 	721
126 	150 	400 	666
;
run;
 
proc print data=start;
  title 'starting data';
run;
 
data intermediate(keep=customerid pgtype val);
  set start;
  ** this array will be as big as needed for all variables that start with 'pricing';
  ** assumes that the variables are numbered 01, 02, 03, etc in original data;
  array prc (*) pricing:;
  do I = 1 to dim(prc);
        pgtype = catt('Pricing',put(i,z2.));
	val = prc(i);
	output;
  end;
run;
 
proc print data=intermediate;
title 'intermediate to send to tabulate';
run;
 
proc tabulate data=intermediate;
  title 'Count customers for each value';
  class pgtype ;
  class val / order=freq;
  table pgtype=' ',
        val=' ', 
        n='Count' / box=_page_ ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 14:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315530#M61645</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-11-30T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315557#M61648</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its ok if the code is big and no IML and i dont need to make my variables character and we can remove put from the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to remove put and run it but I am getting the following error with below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;+ proc sql;&lt;/P&gt;
&lt;P&gt;1 + create table test77 as&lt;/P&gt;
&lt;P&gt;NOTE: Line generated by the CALL EXECUTE routine.&lt;/P&gt;
&lt;P&gt;2 + select 1 as x,"cnt_id" as a length=12,"Pricing01 " as b length=100 from test7(obs=1) union select&lt;/P&gt;
&lt;P&gt;2 !+2,count(customerid),_name_, from test7 group by pricing01&lt;/P&gt;
&lt;P&gt;_____&lt;/P&gt;
&lt;P&gt;22&lt;/P&gt;
&lt;P&gt;76&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, (, *, **, +, ',', -, '.', /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =,&lt;/P&gt;
&lt;P&gt;&amp;gt;, &amp;gt;=, ?, AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE,&lt;/P&gt;
&lt;P&gt;LEN, LENGTH, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code I have used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set temp end=last;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if _n_=1 then call execute('proc sql;create table want as ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;call execute(cat('select ',n,' as x," cnt_id" as a length=12,"',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;_name_,'" as b length=100 from have(obs=1) union select ',n+1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;',count(customerid),_name_, from have group by ',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;_name_));&lt;/P&gt;
&lt;P&gt;if not last then call execute(cat('union select ',n+2,'," "," " from have (obs=1) union'));&lt;/P&gt;
&lt;P&gt;else call execute(';quit;');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 19:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315557#M61648</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-30T19:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315649#M61657</link>
      <description>&lt;P&gt;Hi Ksharp ,&lt;/P&gt;
&lt;P&gt;Is there any possibility that you could remove put and then send code again because i tried to remove it but i am getting syntax errors for data_null_ step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can u please help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 19:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315649#M61657</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-11-30T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315854#M61683</link>
      <description>&lt;PRE&gt;
The question is do you have to make a table ? that would lead to have to use PUT() 
which would be very slowly.

Or just want make a report as Cynthia did, that would be very fast.

&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 08:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315854#M61683</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-01T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315857#M61684</link>
      <description>&lt;PRE&gt;
The following  just generated a report ,should be very fast.





data have;
infile cards truncover expandtabs;
input customerid	pricing01	pricing02	pricing03;
cards;
12345	200	300	240
12345	200	300	240
123	100	300	626
121	200	300	721
126	150	400	666
;
run;

proc transpose data=have(keep=pricing: obs=0) out=temp;
run;

data _null_;
 set temp end=last;
 if _n_=1 then call execute('proc sql; ');
 call execute(cat('select count(customerid) as cust_id,',_name_,
 ' from have group by ',_name_,';'));
if last then call execute(';quit;');
run;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 08:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/315857#M61684</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-01T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316009#M61698</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;yes but the code doesnot&amp;nbsp;union and &amp;nbsp;create all the combinations in a single dataset like your code before same excatly like below &amp;nbsp;but&amp;nbsp; i dont need any put as it will take lot of time . Cynthia's report also i have ran it but i need&amp;nbsp; a dataset&amp;nbsp; instead of report&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="128" style="width: 96pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD width="64" height="20" style="border: 0.5pt solid windowtext; border-image: none; width: 48pt; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="64" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext black; width: 48pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing01&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;3&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;200&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;100&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;150&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing02&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;4&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;300&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;400&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;cnt_id&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;pricing03&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;2&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;240&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;626&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;721&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15pt;"&gt;
&lt;TD height="20" align="right" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;666&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all help&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 19:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316009#M61698</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-12-01T19:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316063#M61700</link>
      <description>&lt;P&gt;hi Cynthia ,&lt;/P&gt;
&lt;P&gt;I have a question what if i have all different varaibles like item ,price ,insurance,name ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 19:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316063#M61700</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-12-01T19:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316113#M61705</link>
      <description>then you would need to list them in the array statement...but item, and name are character aren't they? price and insurance would be numeric? An array can only contain one type of variable (either character or numeric) -- that is different than the original scope of your question.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 01 Dec 2016 23:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316113#M61705</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-01T23:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316197#M61707</link>
      <description>&lt;PRE&gt;
Then you have no choice. you have to use PUT() , no matter what method I used in SQL or DataStep ,HashTable, IML ....

Add the following maybe a faster.

options bulknum=100 bulksize=128k ;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2016 10:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316197#M61707</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-02T10:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: summary statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316211#M61708</link>
      <description>&lt;PRE&gt;
Opps.

option  bufno=100 bufsize=128k;



&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summary-statistics/m-p/316211#M61708</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-02T11:15:37Z</dc:date>
    </item>
  </channel>
</rss>

