<?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 SUMMARY/MEANS/UNIVARIATE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595002#M15718</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232758"&gt;@aloou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this is something you can try :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro stat_lib (lib);

	proc contents data=&amp;amp;lib.._all_ noprint out=work.lib_list;
	run;

	proc sort data=work.lib_list (keep= memname type where=(type=1)) nodupkey;
		by memname;
	run;

	data _null_;
		set lib_list;
		call symput("memname"||left(_n_),memname);
		call symput("nbdatasets",_n_);
	run;

	%do i=1 %to &amp;amp;nbdatasets;
		title "Summary statistics of dataset &amp;amp;lib..&amp;amp;&amp;amp;memname&amp;amp;i";
		proc means data=&amp;amp;lib..&amp;amp;&amp;amp;memname&amp;amp;i;
		var _numeric_;
		run;
		title;
	%end;

%mend;

%stat_lib(&amp;lt;your library&amp;gt;);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(code not tested)&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 10:17:31 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2019-10-09T10:17:31Z</dc:date>
    <item>
      <title>Proc SUMMARY/MEANS/UNIVARIATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/594993#M15712</link>
      <description>&lt;P&gt;hello every one,&lt;/P&gt;&lt;P&gt;is it possible to Apply proc summary or proc means or proc univariate on a whole Library, like :&lt;/P&gt;&lt;P&gt;proc summary data=libref._ALL_ ;&lt;/P&gt;&lt;P&gt;var _NUMERIC_;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have been trying that but it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/594993#M15712</guid>
      <dc:creator>aloou</dc:creator>
      <dc:date>2019-10-09T09:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SUMMARY/MEANS/UNIVARIATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/594994#M15713</link>
      <description>&lt;P&gt;Two questions:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you want to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many data sets are we talking?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/594994#M15713</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-09T09:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SUMMARY/MEANS/UNIVARIATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595002#M15718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232758"&gt;@aloou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this is something you can try :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro stat_lib (lib);

	proc contents data=&amp;amp;lib.._all_ noprint out=work.lib_list;
	run;

	proc sort data=work.lib_list (keep= memname type where=(type=1)) nodupkey;
		by memname;
	run;

	data _null_;
		set lib_list;
		call symput("memname"||left(_n_),memname);
		call symput("nbdatasets",_n_);
	run;

	%do i=1 %to &amp;amp;nbdatasets;
		title "Summary statistics of dataset &amp;amp;lib..&amp;amp;&amp;amp;memname&amp;amp;i";
		proc means data=&amp;amp;lib..&amp;amp;&amp;amp;memname&amp;amp;i;
		var _numeric_;
		run;
		title;
	%end;

%mend;

%stat_lib(&amp;lt;your library&amp;gt;);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(code not tested)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595002#M15718</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-10-09T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SUMMARY/MEANS/UNIVARIATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595019#M15722</link>
      <description>&lt;P&gt;In my experience, computing summary statistics on a huge number of variables is of very limited usefulness, and not worth the time to do it. So I don't do this any more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless, if you are going to do this, I think it would make more sense to save the output in a SAS data set, in which you could actually search, and later analyze, rather than a huge number of HTML outputs as in the method from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595019#M15722</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-09T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SUMMARY/MEANS/UNIVARIATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595080#M15729</link>
      <description>&lt;P&gt;It's not possible to do this easily in one step and I likely wouldn't recommend it anyways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can automate it quite easily though, will the data sets have anything in common or are they all entirely different?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232758"&gt;@aloou&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hello every one,&lt;/P&gt;
&lt;P&gt;is it possible to Apply proc summary or proc means or proc univariate on a whole Library, like :&lt;/P&gt;
&lt;P&gt;proc summary data=libref._ALL_ ;&lt;/P&gt;
&lt;P&gt;var _NUMERIC_;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have been trying that but it is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SUMMARY-MEANS-UNIVARIATE/m-p/595080#M15729</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-09T14:50:09Z</dc:date>
    </item>
  </channel>
</rss>

