<?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: How do you keep variables in the new dataset you create using proc means (not manipulating them) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603189#M174758</link>
    <description>&lt;P&gt;See attached for initial data set. there are several wt values for each patient_id. I need the min and the max for each pat ID. The original file was too large to upload.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 13:34:55 GMT</pubDate>
    <dc:creator>Flexluthorella</dc:creator>
    <dc:date>2019-11-11T13:34:55Z</dc:date>
    <item>
      <title>How do you keep variables in the new dataset you create using proc means (not manipulating them)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603173#M174747</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Hivdata;
merge learn.demogdemo (keep=patient_id male death arvstart) learn.visitdemo (keep=patient_id weight apptdate);
by patient_id;
run;

*identify min weight prior to ARTstart by seperating records where appt date is less than or equal to arvstart to find min weight by id;

proc means data=work.Hivdata min noprint;
class patient_id;
var weight male death;
where apptdate le arvstart;
output out=minweight
min=minWt;
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code is outputing the new var minWt but the other variables like male and death are not being keep. I also need to do this with max weight and compare difference.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603173#M174747</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603177#M174748</link>
      <description>&lt;P&gt;If you want your other variables you need to add them into the class statement - be careful though as this can change the result of the minimum just based on patientid. What you can do is merge the result of proc means back to your original set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-unison&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603177#M174748</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2019-11-11T13:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603178#M174749</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297482"&gt;@Flexluthorella&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Hivdata;
merge learn.demogdemo (keep=patient_id male death arvstart) learn.visitdemo (keep=patient_id weight apptdate);
by patient_id;
run;

*identify min weight prior to ARTstart by seperating records where appt date is less than or equal to arvstart to find min weight by id;

proc means data=work.Hivdata min noprint;
class patient_id;
var weight male death;
where apptdate le arvstart;
output out=minweight
min=minWt;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code is outputing the new var minWt but the other variables like male and death are not being keep. I also need to do this with max weight and compare difference.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I am understanding the question properly (which I may not be, can you clarify or explain in more detail what you want) you need ask for statistics for variables MALE and DEATH in the OUTPUT statement as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;output out=minweight min(weight)=minweight mean(male death)=;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603178#M174749</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-11T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603179#M174750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297482"&gt;@Flexluthorella&lt;/a&gt;&amp;nbsp; Good morning, A sample of your input dataset and the expected output for the input will help determine what's the best approach i would think.&amp;nbsp; Your description gives me leaning towards proc sql unless your variable male and death are actually analysis variables.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603179#M174750</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-11T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603180#M174751</link>
      <description>How will it changes the results? I need the absolute min per patient ID</description>
      <pubDate>Mon, 11 Nov 2019 13:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603180#M174751</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603181#M174752</link>
      <description>&lt;PRE&gt;output out=minweight min= / autoname ;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603181#M174752</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-11T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603182#M174753</link>
      <description>I need the min weight per patient_id. the var male and death are numeric. male is gender and values include 1 for male 0 for female. Death values include 1 for deceased 0 for not deceased. I do not need the min or any stats for these.</description>
      <pubDate>Mon, 11 Nov 2019 13:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603182#M174753</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603184#M174754</link>
      <description>I designated the name as minWt. If I did autoname, how would that help with carrying over the other variables.?</description>
      <pubDate>Mon, 11 Nov 2019 13:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603184#M174754</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603185#M174755</link>
      <description>Male and death need to be in the final table but not analyzed. I am creating two datasets with minwt and maxwt then merging these two together. My final output should have the delta weight where delta is gt 10 lbs and the tables will have only the proportion of deceased (death=1 only) or males vs females. final table is most likely proc freq with cum percentage.</description>
      <pubDate>Mon, 11 Nov 2019 13:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603185#M174755</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603187#M174756</link>
      <description>when I ran the var in the class statement, there were missing data spots. What do you mean by adding proc means results to original data set? How would I do that</description>
      <pubDate>Mon, 11 Nov 2019 13:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603187#M174756</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603188#M174757</link>
      <description>&lt;P&gt;ok&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297482"&gt;@Flexluthorella&lt;/a&gt;&amp;nbsp; Thanks. May I/we(on behalf of othersw too) request you to post the values of what you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it something like the below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Patientid&amp;nbsp; Gender Death Weight&lt;/P&gt;
&lt;P&gt;A01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&lt;/P&gt;
&lt;P&gt;A02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 60&lt;/P&gt;
&lt;P&gt;A03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65&lt;/P&gt;
&lt;P&gt;A04&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603188#M174757</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-11T13:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603189#M174758</link>
      <description>&lt;P&gt;See attached for initial data set. there are several wt values for each patient_id. I need the min and the max for each pat ID. The original file was too large to upload.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603189#M174758</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603196#M174761</link>
      <description>&lt;P&gt;How about?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select patientid, male, deceased ,min(weight) as min_wt
from your_input
group by patientid
having weight= min_wt;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603196#M174761</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-11T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603200#M174765</link>
      <description>Can I do the same for maxweight? Can I do this in one proc sql?</description>
      <pubDate>Mon, 11 Nov 2019 13:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603200#M174765</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603201#M174766</link>
      <description>the proc sql function did not work. error states that state is not valid or used out of proper order.</description>
      <pubDate>Mon, 11 Nov 2019 13:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603201#M174766</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603202#M174767</link>
      <description>&lt;P&gt;yes you can if you want something like the following this to get two records i.e 1 for min 2 for max in the having filter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sql&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; patientid&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; male&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; deceased &lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;min&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;weight&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; as min_wt,max(weight) as max_wt
&lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt; your_input
&lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; patientid
having &lt;SPAN class="token statement"&gt;weight&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; min_wt or weight=max_wt&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603202#M174767</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-11T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603203#M174768</link>
      <description>There is an error with this one as well. The query does not give me the output I need</description>
      <pubDate>Mon, 11 Nov 2019 13:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603203#M174768</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603208#M174772</link>
      <description>&lt;P&gt;Please pen down a small sample like i did with 5 or 6 records and post the output you want. Then using that you can test against the real dataset you have&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603208#M174772</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-11T14:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603210#M174773</link>
      <description>&lt;DIV class="textLayer--absolute" style="left: 123.344px; top: 283.049px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.876524);"&gt;"Using the data sets Demodemo.sas7bdat and Visitdemo.sas7bdat, we want to create a cohort&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 299.6px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.911113);"&gt;containing patients whose minimum body weight prior to ART start is more than 10 pounds&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;less than their maximum body weight after ART start and compare the proportion of deceased men to deceased women in this cohort."&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;I will be honest, I may not full understand the question and my professor is not responding to me.&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;patient_Id Male death&amp;nbsp;&amp;nbsp; arvstart &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; apptdate&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 12May2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01june2012&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 05april2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09aug2016&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18jan2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06feb2013&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="textLayer--absolute" style="left: 123.349px; top: 316.15px; font-size: 12.5633px; font-family: sans-serif; transform: scaleX(0.906189);"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603210#M174773</guid>
      <dc:creator>Flexluthorella</dc:creator>
      <dc:date>2019-11-11T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you keep variables in the new dataset you create using proc means (not manipulating them)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603213#M174776</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297482"&gt;@Flexluthorella&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I need the min weight per patient_id. the var male and death are numeric. male is gender and values include 1 for male 0 for female. Death values include 1 for deceased 0 for not deceased. I do not need the min or any stats for these.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So it sounds like those will be constant values across all observations for a particular person.&lt;/P&gt;
&lt;P&gt;You can either include them in the CLASS statement instead of the VAR statement. (make sure to add NWAY option to the PROC statement).&lt;/P&gt;
&lt;P&gt;Or if you include them in the VAR statement then calculate a stat on them.&amp;nbsp; Like MIN or MAX.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-keep-variables-in-the-new-dataset-you-create-using/m-p/603213#M174776</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-11T14:14:42Z</dc:date>
    </item>
  </channel>
</rss>

