<?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 univariate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate/m-p/316304#M61714</link>
    <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;You have a datastep which reads in some data from datalines.&lt;/P&gt;
&lt;P&gt;Then a proc univariate is run.&lt;/P&gt;
&lt;P&gt;The bit you are probably confused with is the ods select. &amp;nbsp;What happens is behind the scenes with procedures like univariate, is that certain tables are created. &amp;nbsp;You can see what each procedure creates by putting:&lt;BR /&gt;ods trace on;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1fpt3uuow90o3n155hs7bp1mo7f.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1fpt3uuow90o3n155hs7bp1mo7f.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Before your procedure.&lt;/P&gt;
&lt;P&gt;This will show in the log each object created by the procedure, giving the name and some other information. &amp;nbsp;You can then tell SAS to keep those objects by using the:&lt;/P&gt;
&lt;P&gt;ods select &amp;lt;objectname&amp;gt;;&lt;/P&gt;
&lt;P&gt;SAS Docs help here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1b72ff70v3obrn16aanp1r9q2bu.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1b72ff70v3obrn16aanp1r9q2bu.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p0oxrbinw6fjuwn1x23qam6dntyd.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p0oxrbinw6fjuwn1x23qam6dntyd.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 17:11:32 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-12-02T17:11:32Z</dc:date>
    <item>
      <title>Proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate/m-p/316299#M61712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody explian this program:&lt;/P&gt;&lt;P&gt;data work.bp;&lt;BR /&gt;input variable$ type$ len label$;&lt;BR /&gt;datalines;&lt;BR /&gt;Diabp num 8 &amp;nbsp;Diolastic blood Pressure&lt;BR /&gt;Pno Char 4 &amp;nbsp;Patient no&lt;BR /&gt;sysbp num 8 &amp;nbsp;Systolic blood pressure&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;ods select Extremeobs;&lt;BR /&gt;proc univariate data=work.bp;&lt;BR /&gt;var Diabp;&lt;BR /&gt;by pno;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 16:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate/m-p/316299#M61712</guid>
      <dc:creator>ysyeda</dc:creator>
      <dc:date>2016-12-02T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate/m-p/316304#M61714</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;You have a datastep which reads in some data from datalines.&lt;/P&gt;
&lt;P&gt;Then a proc univariate is run.&lt;/P&gt;
&lt;P&gt;The bit you are probably confused with is the ods select. &amp;nbsp;What happens is behind the scenes with procedures like univariate, is that certain tables are created. &amp;nbsp;You can see what each procedure creates by putting:&lt;BR /&gt;ods trace on;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1fpt3uuow90o3n155hs7bp1mo7f.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1fpt3uuow90o3n155hs7bp1mo7f.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Before your procedure.&lt;/P&gt;
&lt;P&gt;This will show in the log each object created by the procedure, giving the name and some other information. &amp;nbsp;You can then tell SAS to keep those objects by using the:&lt;/P&gt;
&lt;P&gt;ods select &amp;lt;objectname&amp;gt;;&lt;/P&gt;
&lt;P&gt;SAS Docs help here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1b72ff70v3obrn16aanp1r9q2bu.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p1b72ff70v3obrn16aanp1r9q2bu.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p0oxrbinw6fjuwn1x23qam6dntyd.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p0oxrbinw6fjuwn1x23qam6dntyd.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate/m-p/316304#M61714</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-02T17:11:32Z</dc:date>
    </item>
  </channel>
</rss>

