<?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 Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345919#M273178</link>
    <description>&lt;P&gt;Can you show the proc contents of&amp;nbsp;&lt;SPAN&gt;SUMMARY_DC06? And maybe&amp;nbsp;DC06 as well?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 19:12:32 GMT</pubDate>
    <dc:creator>collinelliot</dc:creator>
    <dc:date>2017-03-30T19:12:32Z</dc:date>
    <item>
      <title>PROC Summary Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345909#M273176</link>
      <description>&lt;P&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;I need the syntax to get a summary but only keep specific variables from the dataset,&amp;nbsp;not everything in proc contents. My code looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;SUMMARY&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=DC06 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NWAY&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;MISSING&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CLASS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; DUE_STAGE ICS_CUT; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;VAR&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ROLL ROLL_BAL CURR_BAL;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ID&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SYS_NUM MOB_CUT RANDOM_DIGIT UTILIZATION STATE_CD BAL_CUT CREDIT_LIMIT NSF_CNT FIRST_PMT_DFLT_FLAG;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;OUTPUT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=SUMMARY_DC06 (RENAME=(_FREQ_=NUMACCT) DROP=_TYPE_) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SUM&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;The output dataset is giving me every variable in the original dataset DC06. I only want to keep the ones listed here. Please help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345909#M273176</guid>
      <dc:creator>dscottmax1</dc:creator>
      <dc:date>2017-03-30T19:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Summary Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345918#M273177</link>
      <description>&lt;P&gt;I can't replicate your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post a proc contents from DC06 and Summary_DC06?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, that all variables in your ID statement get included, is that what's causing your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class nway missing;
class sex;
var weight;
id name;
output out=summary sum=;
run;

proc print data=summary;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345918#M273177</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-30T19:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Summary Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345919#M273178</link>
      <description>&lt;P&gt;Can you show the proc contents of&amp;nbsp;&lt;SPAN&gt;SUMMARY_DC06? And maybe&amp;nbsp;DC06 as well?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345919#M273178</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-30T19:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Summary Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345920#M273179</link>
      <description>&lt;P&gt;PROC SUMMARY only does what it is told.&amp;nbsp; For example, if you don't want the variables in the ID statement, get rid of them (or possibly get rid of the entire ID statement).&amp;nbsp; It's not a requirement for running PROC SUMMARY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A longshot:&amp;nbsp; PROC SUMMARY contained an error and thus did not replace SUMMARY_DC06 so you are looking at an older version of the summary data set.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Summary-Question/m-p/345920#M273179</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-30T19:16:03Z</dc:date>
    </item>
  </channel>
</rss>

