<?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 PRINT with specific observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415234#M280109</link>
    <description>&lt;P&gt;You can use a WHERE statement in almost every procedure.&amp;nbsp; You can use a WHERE clause as a data set option on any data set (or at least almost every data set).&amp;nbsp; Examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class(where=(sex='F')); run;
proc sort data=sashelp.class out=class(where=(sex='F')); by age; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Nov 2017 15:56:57 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-11-21T15:56:57Z</dc:date>
    <item>
      <title>PROC PRINT with specific observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415223#M280106</link>
      <description>&lt;P&gt;I am trying to display a specific subset of variables from my data set&amp;nbsp;&lt;SPAN&gt;HypAnl.HypPrimAnl. I have a variable called COCd that is a numerical variable. I am trying to just display the observations where COCd = 2, without actually showing the COCd variable. How would I do that&amp;nbsp;using the code I have below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title1&amp;nbsp;"Subjects Who Died From Heart Failure";&lt;BR /&gt;proc print data&amp;nbsp;= HypAnl.HypPrimAnl;&lt;BR /&gt;label;&lt;BR /&gt;id SSN;&lt;BR /&gt;var&amp;nbsp;WtLb BMI SBP;&lt;BR /&gt;label&amp;nbsp;SSN = 'Soc Sec Number'&lt;BR /&gt;WtLb= 'Subject Weight'&lt;BR /&gt;BMI = 'Body Mass Index'&lt;BR /&gt;SBP = 'Systolic Blood Pressure';&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415223#M280106</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-11-21T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT with specific observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415226#M280107</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try a where statement.&amp;nbsp; Add this to your PROC PRINT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where COCd = 2;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415226#M280107</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-21T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT with specific observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415227#M280108</link>
      <description>&lt;P&gt;Perfect, that works out great! I was just unsure exactly what to use in a PROC PRINT.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415227#M280108</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-11-21T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT with specific observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415234#M280109</link>
      <description>&lt;P&gt;You can use a WHERE statement in almost every procedure.&amp;nbsp; You can use a WHERE clause as a data set option on any data set (or at least almost every data set).&amp;nbsp; Examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class(where=(sex='F')); run;
proc sort data=sashelp.class out=class(where=(sex='F')); by age; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-with-specific-observations/m-p/415234#M280109</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-21T15:56:57Z</dc:date>
    </item>
  </channel>
</rss>

