<?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: Comparing date variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812547#M34032</link>
    <description>The reason behind your code isn't picking the 1st appearance of Id, roll, num is bcuz of&lt;BR /&gt;03MAR2022 21FEB2022 1412 70 116 1&lt;BR /&gt;04MAR2022 29JAN2022 1412 70 116 2&lt;BR /&gt;As you see the above two rows, the id, roll, num is same for these two rows but when you see DATE1 values i.e 03MAR2022 and 04MAR2022 they're not same so, that's why it isn't picking the 1st appearance.like I told you before based on id, roll, num everything is interlinked with eachother. So can we resolve this and get only the 1st appearance of Id, roll, num though for every id, roll, num has different dates in DATE1 variable. In the end, the DATE1 &amp;gt;= DATE2.&lt;BR /&gt;Thankyou.</description>
    <pubDate>Wed, 11 May 2022 05:39:20 GMT</pubDate>
    <dc:creator>Pandu2</dc:creator>
    <dc:date>2022-05-11T05:39:20Z</dc:date>
    <item>
      <title>Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812109#M33988</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Could anyone please help me in comparing two sas date variables which are in date9 formats only in data step.&lt;BR /&gt;For instance, sas_date &amp;gt;= old_date.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated, Thankyou.</description>
      <pubDate>Mon, 09 May 2022 10:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812109#M33988</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T10:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812116#M33989</link>
      <description>&lt;P&gt;If the variables are true date variables, the comparison operators will work as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 10:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812116#M33989</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-09T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812118#M33990</link>
      <description>Could you please provide me an example. When I try it on my side it gave me the blank data.</description>
      <pubDate>Mon, 09 May 2022 10:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812118#M33990</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812121#M33991</link>
      <description>&lt;P&gt;Please post the step you are using along with data in usable form.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 10:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812121#M33991</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-09T10:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812122#M33992</link>
      <description>&lt;P&gt;Please share the code you tried, and also tell us if there were any notes / warnings / errors in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code in your question,&amp;nbsp;&lt;SPAN&gt;sas_date &amp;gt;= old_date , will work if these two variables exist in your data.&amp;nbsp; Actually, it will work even if one or both of the variables doesn't exist, because SAS will create the variables for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if it's not working, the problem is somewhere else in your code, or you're not understanding the values in the data.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 10:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812122#M33992</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-05-09T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812124#M33993</link>
      <description>Data want;&lt;BR /&gt;Set have;&lt;BR /&gt;by id roll num;&lt;BR /&gt;If (first.id and first.roll and first.num)=1 and sas_date &amp;gt;=old_date&lt;BR /&gt;Then output;&lt;BR /&gt;run;&lt;BR /&gt;I sorted the dataset by using those 3 variables and using first keyword to get the 1st variable which should meet the condition sas_date&amp;gt;=old_date but it isn't working instead it is giving me a blank data</description>
      <pubDate>Mon, 09 May 2022 11:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812124#M33993</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T11:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812130#M33994</link>
      <description>&lt;P&gt;People asked that you share (a portion of) the data as well. But you haven't done that. We're trying to help you but you have to help us too. We can't help you if we don't have your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide the data in usable form, by typing it into SAS data step code, or by following &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812130#M33994</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-09T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812131#M33995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is syntactically correct, so it's likely a problem in your data, or your understanding of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your current code will select records with both&amp;nbsp; first.num=1 and sas_date&amp;gt;old_date. If the first record for a group does not have sas_date&amp;gt;old_date, then no records will be selected from that group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your goal is to select the subset of records that have&amp;nbsp;sas_date&amp;gt;old_date, and then select the first.num record from that subset, that would require different logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  set have ;
  by id roll num ;
  If first.num=1 ;
  where sas_date &amp;gt;=old_date ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The WHERE filtering happens before the data are read into the PDV and identifies the subset you are interested in, then first.num filtering is applied to that subset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the expression first.num=1&amp;nbsp; is exactly the same as&amp;nbsp;&lt;SPAN&gt;(first.id and first.roll and first.num)=1&amp;nbsp;because if first.num=1, then both first.id and first.roll must be 1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812131#M33995</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-05-09T11:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812137#M33996</link>
      <description>Thankyou for your assistance, this is the way I want to do. I used your code but it got an error like by variables are not properly sorted Even though they are sorted. Please advise me</description>
      <pubDate>Mon, 09 May 2022 12:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812137#M33996</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T12:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812139#M33997</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thankyou for your assistance, this is the way I want to do. I used your code but it got an error like by variables are not properly sorted Even though they are sorted. Please advise me&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us a portion of your data. We have advised you to do this several times already, we can't help you if we can't see your data. Please provide the data following &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812139#M33997</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-09T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812142#M33998</link>
      <description>You should trust that error message and add a PROC SORT step immediately&lt;BR /&gt;before your DATA step that sorts the data by all 3 variables, in the same&lt;BR /&gt;order as listed on your BY statement.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2022 12:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812142#M33998</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-05-09T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812146#M34001</link>
      <description>Thank you veryyy muchh, it worked nicely. I would like to add some more info to where condition in your code.&lt;BR /&gt;My data table has 6 variables named sas_date,old_date,id,roll,num, amount. I'm unable to add the dataset here, I strongly apologize for that.&lt;BR /&gt;After using your code, I closely monitored the output dataset, it met the where condition but it didn't take first.num value so for those cases Please do keep an or condition where if sas_date ge old_date fails and it unable to take the first.num then when there's a increase in amount field that row should be picked and the sas_date&amp;gt;=old_date should also match. Thankyou.</description>
      <pubDate>Mon, 09 May 2022 12:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812146#M34001</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T12:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812155#M34002</link>
      <description>In this the if condition should apply first then after where condition should apply but it applied oppositely that's what I don't require. Please do make changes accordingly. Thankyou</description>
      <pubDate>Mon, 09 May 2022 13:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812155#M34002</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-09T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812172#M34003</link>
      <description>&lt;P&gt;Of course you can add a data step with datalines here, everyone can.&lt;/P&gt;
&lt;P&gt;If data is sensitive, make up some fake values; what is important is the structure (variable types, lengths, formats), and a description of the expected result from the example dataset.&lt;/P&gt;
&lt;P&gt;This is not rocket science, but a very valid skill which every SAS coder MUST have.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 14:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812172#M34003</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-09T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812175#M34004</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Data want;&lt;BR /&gt;Set have;&lt;BR /&gt;by id roll num;&lt;BR /&gt;If (first.id and first.roll and first.num)=1 and sas_date &amp;gt;=old_date&lt;BR /&gt;Then output;&lt;BR /&gt;run;&lt;BR /&gt;I sorted the dataset by using those 3 variables and using first keyword to get the 1st variable which should meet the condition sas_date&amp;gt;=old_date but it isn't working instead it is giving me a blank data&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;FIRST. does&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; indicate&amp;nbsp;&lt;EM&gt;variables&lt;/EM&gt;, it indicates&amp;nbsp;&lt;EM&gt;observations&lt;/EM&gt;. Please be very clear with your choice of words, clarity is the lynchpin of working with software.&lt;/P&gt;
&lt;P&gt;Your condition&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;first.id and first.roll and first.num&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is not needed in this form; since it can only be true when first.id is true, and first.id implies first. for all other variables, you only need the first part fo the condition.&lt;/P&gt;
&lt;P&gt;The fact that you got no output means that the condition&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas_date &amp;gt;=old_date&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is never true for any &lt;U&gt;first observation in a ID group&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;If you want to retrieve the first observation of a ID group that fulfills the date condition, you need to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have (where=(sas_date &amp;gt;= old_date));
by id roll num; /* roll and num are only here to ensure that the dataset is properly sorted */
if first.id;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since only observations meeting the date condition make it into the data step, the subsequent FIRST. gets what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not what you want, then you &lt;U&gt;&lt;STRONG&gt;MUST POST EXAMPLE DATA AND THE EXPECTED RESULT&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 14:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812175#M34004</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-09T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812256#M34006</link>
      <description>&lt;P&gt;Agree with others.&amp;nbsp; Please post some sample data that illustrates the problem.&amp;nbsp; Ideally post the code with a DATA step with a cards statement that has maybe 10 records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post sample input data, along with the code, and describe how the results you want differ from the results you are getting, people will be able to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And often when you take the time to create a small sample input dataset, you end up solving the problem yourself.&amp;nbsp; Because you immediately have an manageable example you can work with.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812256#M34006</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-05-09T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812277#M34008</link>
      <description>data WORK.have;&lt;BR /&gt;input DATE1 :DATE9. DATE2 :DATE9. ID:4. ROLL:2. NUM:3. AMOUNT:2.;&lt;BR /&gt;datalines;&lt;BR /&gt;01JAN2022 20APR2022 1411 69 115 1&lt;BR /&gt;01FEB2022 30JAN2022 1411 69 115 2&lt;BR /&gt;01FEB2022 30JAN2022 1411 69 115 3&lt;BR /&gt;03MAR2022 21FEB2022 1412 70 116 1&lt;BR /&gt;04MAR2022 29JAN2022 1412 70 116 2&lt;BR /&gt;;;;;&lt;BR /&gt;&lt;BR /&gt;Here's the data step code of the dataset. The records were sorted based on date1, DATE2, id, roll, num and the primary keys for this dataset is id, roll, num. Based on these 3 variables the data is inter linked with eachother.&lt;BR /&gt;&lt;BR /&gt;When comes to what I require is&lt;BR /&gt;I require the rows of 1st appearance of Id, roll, num only when the DATE1 is &amp;gt;= DATE2. This DATE1 &amp;gt;= DATE2 should apply only when the 1st appearance of Id, roll, num. If this fails, please keep an OR condition by saying the amount values should be compared to prior and next value of eachother and when  there's an increase in the amount variable values then the row which has max amount value should be picked and it must meet the base condition which is DATE1 &amp;gt;= DATE2.&lt;BR /&gt;Example :&lt;BR /&gt;01JAN2022 20APR2022 1411 69 115 1&lt;BR /&gt;01FEB2022 30JAN2022 1411 69 115 2&lt;BR /&gt;01FEB2022 30JAN2022 1411 69 115 3&lt;BR /&gt;03MAR2022 21FEB2022 1412 70 116 1&lt;BR /&gt;04MAR2022 29JAN2022 1412 70 116 2&lt;BR /&gt;&lt;BR /&gt;In the given example above, the DATE1 value is not &amp;gt;= DATE2 for the 1st appearance of Id, roll, num so, it fails then for the next two values the amount is increased i.e 1,2,3 so, for this case the max amount value which is 3 that row should be picked and also the base condition is met 01FEB2022 &amp;gt;= 30JAN2022. This is one iteration. For the 2nd iteration i.e as the id, roll, num is changed that's why I said it as 2nd iteration. So, in the 2nd iteration the 1st appearance of Id, roll, num(i.e 1412 70 116) met the basic condition i.e 03MAR2022 &amp;gt;= 21FEB2022 this row should be picked. once this condition is pass, it shouldn't go to OR condition.&lt;BR /&gt;&lt;BR /&gt;I hope this makes sense to y'all. Thankyou.</description>
      <pubDate>Tue, 10 May 2022 01:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812277#M34008</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-10T01:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812285#M34009</link>
      <description>I forgot to add something previously.&lt;BR /&gt;Sometimes the num and roll values will change and the rest ( id) remains same.&lt;BR /&gt;For example : &lt;BR /&gt;1411 69  115&lt;BR /&gt;1411 70 116&lt;BR /&gt;1411 71 117&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;. Likewise so on.</description>
      <pubDate>Tue, 10 May 2022 02:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812285#M34009</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-10T02:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812343#M34011</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I forgot to add something previously.&lt;BR /&gt;Sometimes the num and roll values will change and the rest ( id) remains same.&lt;BR /&gt;For example : &lt;BR /&gt;1411 69 115&lt;BR /&gt;1411 70 116&lt;BR /&gt;1411 71 117&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;. Likewise so on.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what shall we do in this case? Consider each id/roll/num combination a single group, or each id a group? If the latter, then we do not need to consider roll and num&amp;nbsp;for groups anyway. But are they important for a certain order, or should the order within a group be based on one of the dates?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 10:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812343#M34011</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-10T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing date variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812344#M34012</link>
      <description>In that case, we should consider each id, roll, num combination a single group.</description>
      <pubDate>Tue, 10 May 2022 10:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-date-variables/m-p/812344#M34012</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2022-05-10T10:25:09Z</dc:date>
    </item>
  </channel>
</rss>

