<?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: stop aggregation code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614827#M18657</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289922"&gt;@GreenTree1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As variables redclothes and whiteclothes take the value 0 or 1:&lt;/P&gt;
&lt;P&gt;- if the max value = 0, then it means that the person has never wore red or white&lt;/P&gt;
&lt;P&gt;- if it is equal to 1, then it means that the&amp;nbsp;person wore red or white&amp;nbsp;at least once.&lt;/P&gt;
&lt;P&gt;You can use the following code to retrieve this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	select ID,
		   max(redcloths) as anydayred,
		   max(whiteclothes) as anydaywhite
	from asksas
	group by ID;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can merge it with other columns such as date_oct but I am not sure it makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did that answer you question?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 20:27:59 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-01-02T20:27:59Z</dc:date>
    <item>
      <title>stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614803#M18636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with data where one person can have multiple different observations (same ID, different observations). I have run an aggregation code for an event of interest so that if during any of the observations that event has occurred then it will show up as 1 otherwise 0. This shrinks the observations to the number of people by collapsing the IDs. so let's say 10 observations have collapsed into 5, as there are 10 people with same IDs who showed up twice on different days hence 10 observations. The problem is that once I run the code the data has already collapsed by IDs, and when I run the next code for another event of interest it starts off the collapsed data. How do I stop this from happening? How do I tell sas to look at original data when looking for another event of interest and not continue from the data collapsed by IDs?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a newbie, would appreciate any help, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data asksas;&lt;BR /&gt;set asksas;&lt;BR /&gt;&lt;BR /&gt;by ID;&lt;BR /&gt;&lt;BR /&gt;if first.ID then Sumvar=0;&lt;BR /&gt;&lt;BR /&gt;Sumvar + var;&lt;BR /&gt;&lt;BR /&gt;if last.ID;&lt;BR /&gt;&lt;BR /&gt;drop var;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*checking aggregation code;&lt;BR /&gt;&lt;BR /&gt;proc freq data=asksas;&lt;BR /&gt;tables sumvar;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*drop sumvar;&lt;BR /&gt;data asksas (drop = Sumvar);&lt;BR /&gt;set asksas;&lt;BR /&gt;&lt;BR /&gt;if Sumavar &amp;gt; 0 then var= 1 ;&lt;BR /&gt;else var = 0 ;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;proc freq data=asksas;&lt;BR /&gt;tables var;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614803#M18636</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T17:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614804#M18637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289922"&gt;@GreenTree1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide some sample data?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614804#M18637</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-02T17:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614809#M18641</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply, here is what my data looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp;redcloths . whiteclothes&amp;nbsp; &amp;nbsp; anydayred .&amp;nbsp; anydaywhite&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 18&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;13 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say I am looking at ID 1 wearing red clothes on any date then ID1 will be assigned 1 and so forth. When I do this the data gets collapsed by IDs, in this case, goes from 4 to 2 observation, since ID1 and 2 both wore red on atleats of the two days. following this if I am trying to look for IDs who wore white clothes on any date, it starts off from the collapsed data ie 2 observation whereas I want it to start off from&amp;nbsp; the original 4 observations since wearing red and white clothes are independent events&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614809#M18641</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614811#M18643</link>
      <description>&lt;P&gt;&lt;SPAN&gt;sorry I meant&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;since ID1 and 2 both wore red on&lt;U&gt; at least one o&lt;/U&gt;f the two days&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614811#M18643</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T17:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614820#M18652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289922"&gt;@GreenTree1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the clarification, very helpful.&lt;/P&gt;
&lt;P&gt;Just to be sure to well-understand your need, what would the output data look like?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614820#M18652</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-02T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614824#M18654</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;orginal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp;redcloths . whiteclothes&amp;nbsp; &amp;nbsp; anydayred .&amp;nbsp; anydaywhite&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 18&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;13 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;collapsed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp;redcloths . whiteclothes&amp;nbsp; &amp;nbsp; anydayred .&amp;nbsp; anydaywhite&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; &amp;nbsp; &amp;nbsp;0&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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp;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; 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I try to run the code for "anydaywhite" it starts from the collapsed data of anydayred instead of the original data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 17:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614824#M18654</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T17:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614827#M18657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289922"&gt;@GreenTree1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As variables redclothes and whiteclothes take the value 0 or 1:&lt;/P&gt;
&lt;P&gt;- if the max value = 0, then it means that the person has never wore red or white&lt;/P&gt;
&lt;P&gt;- if it is equal to 1, then it means that the&amp;nbsp;person wore red or white&amp;nbsp;at least once.&lt;/P&gt;
&lt;P&gt;You can use the following code to retrieve this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	select ID,
		   max(redcloths) as anydayred,
		   max(whiteclothes) as anydaywhite
	from asksas
	group by ID;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can merge it with other columns such as date_oct but I am not sure it makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did that answer you question?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 20:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614827#M18657</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-02T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614856#M18662</link>
      <description>&lt;P&gt;so what my code ultimately does is codes 1(redclothes) and 0 (no red clothes) for red clothes worn on any day in the column of redclothes for that specific IDs and removes the observations for that same ID on which red clothes were not worn. Hence decreasing the observations. Once I proceed with the same steps for assiging 1/0 for whiteclothes, sas starts from the subset of data that has been collapsed by IDs for redclothes . for the next step I want it to start from the original data and look for IDs for whiteclothes&amp;nbsp; worn on any day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;orginal&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp;redcloths . whiteclothes&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 18&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;13 .&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; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is where i run&amp;nbsp; the following code and its an intermediate step so the sample below may not be the correct representation.&lt;/P&gt;&lt;PRE&gt;data asksas;&lt;BR /&gt;set asksas;&lt;BR /&gt;&lt;BR /&gt;by ID;&lt;BR /&gt;&lt;BR /&gt;if first.ID then anydayred=0;&lt;BR /&gt;&lt;BR /&gt;anydayred + redclothes;&lt;BR /&gt;&lt;BR /&gt;if last.ID;&lt;BR /&gt;&lt;BR /&gt;drop redclothes;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;collapsed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp; . whiteclothes&amp;nbsp; &amp;nbsp;anydayred&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; 0&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&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;finally, if anydayred then redclothes is 1 and I get rid of the anydayred column because ultimately I am just looking at redclothes on any visit/observation.&lt;/P&gt;&lt;P&gt;and run this code&lt;/P&gt;&lt;PRE&gt;*drop anydayred;&lt;BR /&gt;data asksas (drop = anydayred);&lt;BR /&gt;set asksas;&lt;BR /&gt;&lt;BR /&gt;if anydayred &amp;gt; 0 then redclothes= 1 ;&lt;BR /&gt;else redclothes = 0 ;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; date/oct&amp;nbsp; &amp;nbsp;redcloths . whiteclothes&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp; 19 .&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; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 .&amp;nbsp; &amp;nbsp;15 .&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; &amp;nbsp; &amp;nbsp;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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I attempt to do the same steps for whiteclothes, it starts off from the 2 observations above, whereas I want to start from the original data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this has clarified my question. This is a complicated concept and I am not sure if I am explaining it well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 21:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614856#M18662</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T21:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614862#M18664</link>
      <description>I think I have figured it out. I was using the data statement with set in such a way that it kept working on the modified data. I just changed it the set.orginial data and it worked.</description>
      <pubDate>Thu, 02 Jan 2020 21:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614862#M18664</guid>
      <dc:creator>GreenTree1</dc:creator>
      <dc:date>2020-01-02T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: stop aggregation code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614870#M18667</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289922"&gt;@GreenTree1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I think I have figured it out. I was using the data statement with set in such a way that it kept working on the modified data. I just changed it the set.orginial data and it worked.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good.&amp;nbsp; Then mark your report of the resolution as the solution to this topic.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 21:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-aggregation-code/m-p/614870#M18667</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-02T21:57:30Z</dc:date>
    </item>
  </channel>
</rss>

