<?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: Need help with this in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738933#M80509</link>
    <description>&lt;P&gt;Clearly, the code you submitted to SAS is different from the code you posted to the community. That's why you should always paste the SAS log that shows the error and the SAS code prior to the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your screenshot shows that the code you are submitting has a BY statement such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BY Gender;&lt;/P&gt;
&lt;P&gt;When you use a BY statement, the data must be sorted by the variables(s) on the BY statement.&lt;/P&gt;
&lt;P&gt;So to fix the error, either delete the BY statement or run PROC SORT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc sort data=Blood;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by Gender;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 15:08:03 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-05-04T15:08:03Z</dc:date>
    <item>
      <title>Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738757#M80500</link>
      <description>&lt;DIV&gt;For this problem,&lt;/DIV&gt;&lt;DIV&gt;Run PROC UNIVARIATE on the variables RBC and WBC from the Blood data set.&lt;/DIV&gt;&lt;DIV&gt;1.1 Display the names of the output objects created by this procedure. Attach a screenshot that shows the names.&lt;/DIV&gt;&lt;DIV&gt;Show the code and output of names of the output objects. Any unnecessary outputs will cause a penalty of losing points.&lt;/DIV&gt;&lt;DIV&gt;1.2 Run PROC UNIVARIATE again, selecting only the output object that shows extreme observations&lt;/DIV&gt;&lt;DIV&gt;.And send this output to a temporary SAS data set extrm_obs&lt;/DIV&gt;&lt;DIV&gt;. Set the title as “Extreme Observations of RBC and WBC”. Show the code&lt;/DIV&gt;&lt;DIV&gt;, data set of extrm_obs&amp;nbsp;and interpretation of the data set.&amp;nbsp;Any&lt;/DIV&gt;&lt;DIV&gt;unnecessary outputs will cause a penalty of losing&lt;/DIV&gt;&lt;DIV&gt;points.&lt;/DIV&gt;&lt;DIV&gt;1.3 Issue two ODS statements: one to select the Basic Statistical Measures output object and the other to send this output to a permanent SAS data set : RBC_WBC_Measures. Set the title as "Basic Statistical Measures for RBC and WBC". Show the code ,data set&amp;nbsp;and interpretation of the dataset&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this code correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Blood;&lt;BR /&gt;set blood;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods trace on;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods trace off;&lt;BR /&gt;ods select quantiles;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods select extrm_obs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods select extremeobs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 00:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738757#M80500</guid>
      <dc:creator>mughaloimran</dc:creator>
      <dc:date>2021-05-04T00:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738763#M80502</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380724"&gt;@mughaloimran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;For this problem,&lt;/DIV&gt;
&lt;DIV&gt;Run PROC UNIVARIATE on the variables RBC and WBC from the Blood data set.&lt;/DIV&gt;
&lt;DIV&gt;1.1 Display the names of the output objects created by this procedure. Attach a screenshot that shows the names.&lt;/DIV&gt;
&lt;DIV&gt;Show the code and output of names of the output objects. Any unnecessary outputs will cause a penalty of losing points.&lt;/DIV&gt;
&lt;DIV&gt;1.2 Run PROC UNIVARIATE again, selecting only the output object that shows extreme observations&lt;/DIV&gt;
&lt;DIV&gt;.And send this output to a temporary SAS data set extrm_obs&lt;/DIV&gt;
&lt;DIV&gt;. Set the title as “Extreme Observations of RBC and WBC”. Show the code&lt;/DIV&gt;
&lt;DIV&gt;, data set of extrm_obs&amp;nbsp;and interpretation of the data set.&amp;nbsp;Any&lt;/DIV&gt;
&lt;DIV&gt;unnecessary outputs will cause a penalty of losing&lt;/DIV&gt;
&lt;DIV&gt;points.&lt;/DIV&gt;
&lt;DIV&gt;1.3 Issue two ODS statements: one to select the Basic Statistical Measures output object and the other to send this output to a permanent SAS data set : RBC_WBC_Measures. Set the title as "Basic Statistical Measures for RBC and WBC". Show the code ,data set&amp;nbsp;and interpretation of the dataset&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this code correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Blood;&lt;BR /&gt;set blood;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods trace on;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods trace off;&lt;BR /&gt;ods select quantiles;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods select extrm_obs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods select extremeobs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tried to run it?&amp;nbsp; What does the sas log report?&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 02:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738763#M80502</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-05-04T02:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738769#M80503</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot (233).png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58992i85D671AC14A74E2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (233).png" alt="Screenshot (233).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 03:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738769#M80503</guid>
      <dc:creator>mughaloimran</dc:creator>
      <dc:date>2021-05-04T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738933#M80509</link>
      <description>&lt;P&gt;Clearly, the code you submitted to SAS is different from the code you posted to the community. That's why you should always paste the SAS log that shows the error and the SAS code prior to the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your screenshot shows that the code you are submitting has a BY statement such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BY Gender;&lt;/P&gt;
&lt;P&gt;When you use a BY statement, the data must be sorted by the variables(s) on the BY statement.&lt;/P&gt;
&lt;P&gt;So to fix the error, either delete the BY statement or run PROC SORT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc sort data=Blood;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by Gender;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 15:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738933#M80509</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-05-04T15:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/739877#M80525</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/380724"&gt;@mughaloimran&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you provide sample data from the dataset you have used?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 19:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/739877#M80525</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-07T19:55:21Z</dc:date>
    </item>
  </channel>
</rss>

