<?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 Finding a match of values of our interest if it it is singly present or combination i need to flag in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892836#M352666</link>
    <description>&lt;P&gt;Consider the dataset&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Exam;&lt;/P&gt;&lt;P&gt;format date date9.;&lt;BR /&gt;Input ID $ exam_date Test1 $;&lt;BR /&gt;Datalines;&lt;BR /&gt;9000001&amp;nbsp; 15jan A&lt;BR /&gt;9000001&amp;nbsp; 16jan A+B&lt;BR /&gt;9000001&amp;nbsp; 17jan A+C&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A&lt;BR /&gt;9000001&amp;nbsp; 16jan D&lt;BR /&gt;9000001&amp;nbsp; 17jan A+E&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my answer should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it contains A, B Or in combination then 1 if they have something other with them then 0&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A&amp;nbsp; ---------- 1&lt;BR /&gt;9000001&amp;nbsp; 16jan A+B ------- 1&lt;BR /&gt;9000001&amp;nbsp; 17jan A+C ------- 0&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A ---------- 1&lt;BR /&gt;9000001&amp;nbsp; 16jan D ---------- 0&lt;BR /&gt;9000001&amp;nbsp; 17jan A+E ------- 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you write a code which can help me in&amp;nbsp; this ode this flag&amp;nbsp;&lt;BR /&gt;here we have only A,B two values max to max four combination i will get (A,B,A+B,B+A)&amp;nbsp;&lt;BR /&gt;But I want code that will handle as many as values&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 04:49:21 GMT</pubDate>
    <dc:creator>carl_miles</dc:creator>
    <dc:date>2023-09-06T04:49:21Z</dc:date>
    <item>
      <title>Finding a match of values of our interest if it it is singly present or combination i need to flag</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892836#M352666</link>
      <description>&lt;P&gt;Consider the dataset&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Exam;&lt;/P&gt;&lt;P&gt;format date date9.;&lt;BR /&gt;Input ID $ exam_date Test1 $;&lt;BR /&gt;Datalines;&lt;BR /&gt;9000001&amp;nbsp; 15jan A&lt;BR /&gt;9000001&amp;nbsp; 16jan A+B&lt;BR /&gt;9000001&amp;nbsp; 17jan A+C&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A&lt;BR /&gt;9000001&amp;nbsp; 16jan D&lt;BR /&gt;9000001&amp;nbsp; 17jan A+E&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my answer should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it contains A, B Or in combination then 1 if they have something other with them then 0&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A&amp;nbsp; ---------- 1&lt;BR /&gt;9000001&amp;nbsp; 16jan A+B ------- 1&lt;BR /&gt;9000001&amp;nbsp; 17jan A+C ------- 0&lt;/P&gt;&lt;P&gt;9000001&amp;nbsp; 15jan A ---------- 1&lt;BR /&gt;9000001&amp;nbsp; 16jan D ---------- 0&lt;BR /&gt;9000001&amp;nbsp; 17jan A+E ------- 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you write a code which can help me in&amp;nbsp; this ode this flag&amp;nbsp;&lt;BR /&gt;here we have only A,B two values max to max four combination i will get (A,B,A+B,B+A)&amp;nbsp;&lt;BR /&gt;But I want code that will handle as many as values&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 04:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892836#M352666</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-06T04:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892839#M352669</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;here you go:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set exam;
   length flag 8;
   flag=ifn(verify(compress(test1,,'ak'),'AB'),0,1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2023 05:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892839#M352669</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-06T05:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892841#M352670</link>
      <description>Thank you so much&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you please explain how this step is working&lt;BR /&gt;flag=ifn(verify(compress(test1,,'ak'),'AB'),0,1);</description>
      <pubDate>Wed, 06 Sep 2023 05:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892841#M352670</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-06T05:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892842#M352671</link>
      <description>and why we are declaring ak&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2023 05:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892842#M352671</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-06T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892852#M352679</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;flag=ifn(verify(compress(test1,,'ak'),'AB'),0,1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in SAS double click on a function and press F1 to start the help on the corresponding function page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start with the innermost function which is compress.&lt;/P&gt;
&lt;P&gt;compress is used to remove signs.&lt;/P&gt;
&lt;P&gt;The modifier 'a' means to select the&amp;nbsp;alphabetic characters to the list of characters (to remove)&lt;/P&gt;
&lt;P&gt;but the following 'k' modifier means to keep the 'keep the characters in the list instead of removing them'&lt;/P&gt;
&lt;P&gt;so 'ak' means delete anything but keep the alphatic characters from test1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Verify 'Returns the position of the first character in a string that is not in any of several other strings'&lt;/P&gt;
&lt;P&gt;so it returns a numeric&amp;gt;0 if another character is found than the ones specified&lt;/P&gt;
&lt;P&gt;Verify AB returns a numeric&amp;gt;0 if the result of compress contains anything else than A or B&lt;/P&gt;
&lt;P&gt;The ifn function '&lt;SPAN&gt;Returns a numeric value based on whether an expression is true, false, or missing.'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So if the Verify result is&amp;gt;0 than anything else than A or B was found so the flag should be 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in the other case the flag should be 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 07:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892852#M352679</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-06T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892864#M352686</link>
      <description>&lt;P&gt;Thank you so much for the teaching&lt;BR /&gt;&lt;BR /&gt;Actually I have case that&amp;nbsp;&lt;/P&gt;&lt;P&gt;900001 sebastian&amp;nbsp;&lt;/P&gt;&lt;P&gt;900001 east&lt;/P&gt;&lt;P&gt;900001 nested&amp;nbsp;&lt;/P&gt;&lt;P&gt;900001 test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by following your code:&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;flag=ifn(verify(compress(test1,,'ak'),'sebastian', 'nested'),0,1);&lt;/LI-CODE&gt;&lt;P&gt;I am getting flag&lt;/P&gt;&lt;P&gt;900001 sebastian ----------1&lt;/P&gt;&lt;P&gt;900001 east ----------------1&lt;/P&gt;&lt;P&gt;900001 nested -------------1&lt;/P&gt;&lt;P&gt;900001 test ----------------1&lt;/P&gt;&lt;P&gt;I want this case should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;900001 sebastian ----------1&lt;/P&gt;&lt;P&gt;900001 east ----------------0&lt;/P&gt;&lt;P&gt;900001 nested -------------1&lt;/P&gt;&lt;P&gt;900001 test ----------------0&lt;/P&gt;&lt;P&gt;Could you kindly help me with this&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892864#M352686</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-06T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892905#M352695</link>
      <description>&lt;P&gt;verify checks the presence of a character not if a word is matched, so if you specify 'sebastian' it will check for an 's', an 'e', a 'b' and so on...&lt;/P&gt;
&lt;P&gt;if you want to &lt;STRONG&gt;match words&lt;/STRONG&gt; you could use the findw function or use a regular expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Exam;
Input ID $ Test1 $20.;
Datalines;
9000001 Sebastian
9000001 East
9000001 Nested
9000001 Test
;
run;

*case sensitive approach == no match;
data want1;
   set exam;
   length flag1 flag2 8;
   flag1=ifn(findw(test1,'sebastian') OR findw(test1,'nested'),1,0);
   flag2=prxmatch('/\bsebastian\b/',strip(test1));*with regular expression;
run;

*case insensitive approach;
data want2;
   set exam;
   length flag1 flag2 8;
   flag1=ifn(findw(test1,'sebastian', ' ','i') OR findw(test1,'nested', ' ','i'),1,0);
   flag2=prxmatch('/\bsebastian\b|\bnested\b/i',strip(test1));*with regular expression;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2023 11:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892905#M352695</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-06T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892926#M352705</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;Data Exam;
Input ID $ Test1 $40.;
Datalines;
9000001 Sebastian
9000001 East
9000001 Nested, test
9000001 Test
9000001 Sebastian,Test
9000001 Sebastian,Nested
;
run;

*case sensitive approach == no match;
data want1;
   set exam;
   length flag1 flag2 8;
   flag1=ifn(findw(test1,'sebastian') OR findw(test1,'nested'),1,0);
   flag2=prxmatch('/\bsebastian\b/',strip(test1));*with regular expression;
run;

*case insensitive approach;
data want2;
   set exam;
   length flag1 flag2 8;
   flag1=ifn(findw(test1,'sebastian', ' ','i') OR findw(test1,'nested', ' ','i'),1,0);
   flag2=prxmatch('/\bsebastian\b|\bnested\b/i',strip(test1));*with regular expression;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The code is really helpful&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Its just I should have mentioned this scenerio earlier&amp;nbsp;&lt;BR /&gt;Right now I am getting something in the attached photo&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carl_miles_0-1694005706495.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87666iD2BC20016474C073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carl_miles_0-1694005706495.png" alt="carl_miles_0-1694005706495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So where i highlighted where it should be 0 but I getting 1&lt;BR /&gt;&lt;BR /&gt;Could you help me like how can we approach this problem where i need the word in combination as well if it is present as single or multiple in combination&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I assumed the same logic instead A, B. C i used &lt;FONT color="#FF0000"&gt;&lt;EM&gt;words&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;Could give help me to get the code like in &lt;FONT color="#FF0000"&gt;&lt;EM&gt;words&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 13:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/892926#M352705</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-06T13:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/893120#M352812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I see, in this case I'd loop over the words to check the match&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
*case insensitive approach;
data want2;
   set exam;
   length flag1 flag2 8 CurrentWord $200;

   do i=1 to countw(test1); *loop over the words consult the help to check which delimiters are used;
      CurrentWord=scan(test1,i);
      flag1=ifn(findw(CurrentWord,'sebastian', ' ','i') OR findw(CurrentWord,'nested', ' ','i'),1,0);
      flag2=prxmatch('/^\bsebastian\b|\bnested\b$/i',strip(CurrentWord)); *with regular expression;
      if flag1 ne flag2 then put 'ERROR: Please check inconsistency ' test1= CurrentWord=;
      if flag1 eq 0 then leave; *stop loop in case a word is not matched and return 0;
   end;
   drop CurrentWord i;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2023 10:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/893120#M352812</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-07T10:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895017#M353559</link>
      <description>Hi Oligolas,&lt;BR /&gt;&lt;BR /&gt;data CustomerOrders2;&lt;BR /&gt;input CustomerID2 OrderDate2 :date9.;&lt;BR /&gt;format OrderDate2 date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;1001 01JAN2023&lt;BR /&gt;1001 15FEB2023&lt;BR /&gt;1001 12DEC2023&lt;BR /&gt;1001 25JAN2024&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;So in above code we can see that Orderdate2&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want one more column that will be next date following will come as below mentioned output i want&amp;nbsp;&lt;BR /&gt;CustomerID2&amp;nbsp; OrderDate2&amp;nbsp; &amp;nbsp;Orderdateprev&lt;BR /&gt;&lt;BR /&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01JAN2023&amp;nbsp; &amp;nbsp; &amp;nbsp; 15FEB2023&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12DEC2023&lt;BR /&gt;&lt;BR /&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12DEC2023&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;25JAN2024&lt;BR /&gt;&lt;BR /&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25JAN2024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So the next immediate will append and if there is none then it will be null but it will still in cohort&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you guide me here&amp;nbsp;</description>
      <pubDate>Wed, 20 Sep 2023 10:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895017#M353559</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-20T10:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895051#M353573</link>
      <description>&lt;P&gt;Here you go: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0l66p5oqex1f2n1quuopdvtcjqb.htm" target="_blank" rel="noopener"&gt;lag function&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CustomerOrders2;
input CustomerID2 OrderDate2 :date9.;
format OrderDate2 date9.;
datalines;
1001 01JAN2023
1001 15FEB2023
1001 12DEC2023
1001 25JAN2024
;
run;

proc sort; by CustomerID2 descending OrderDate2 ; run;

data want;
   set CustomerOrders2;
   by CustomerID2 descending OrderDate2;
   length NextDate 8;
   format NextDate date9.;
   NextDate=lag1(OrderDate2);
   if first.CustomerID2 then NextDate=.;
run;

proc sort; by CustomerID2 OrderDate2 ; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2023 13:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895051#M353573</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-20T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895212#M353664</link>
      <description>&lt;P&gt;Hi Oligolas,&lt;BR /&gt;&lt;BR /&gt;thanks for the reply earlier&amp;nbsp;&lt;BR /&gt;I have an dataset like this&lt;/P&gt;&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&lt;BR /&gt;&lt;BR /&gt;I want an ouput like&amp;nbsp;&lt;/P&gt;&lt;P&gt;cust_id&amp;nbsp; &amp;nbsp;date1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date 4&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp;&amp;nbsp;15JAN2023&lt;/P&gt;&lt;P&gt;1001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15JAN2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp; &amp;nbsp; &amp;nbsp;30MAR2023&amp;nbsp; &amp;nbsp; 20FEB2023&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you see date1 and date2 are appended against date3&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;like that i want an output&amp;nbsp;&lt;BR /&gt;i have dataset of 15000 rows&lt;BR /&gt;kindly guide me here pls&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895212#M353664</guid>
      <dc:creator>carl_miles</dc:creator>
      <dc:date>2023-09-21T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a match of values of our interest if it it is singly present or combination i need to fl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895265#M353697</link>
      <description>&lt;P&gt;Difficult to say without any explanation of the derivation of Date4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway I do not see the relation of your last questions with the topic of this thread and if there is, why you don't follow the guidance as explained before&lt;/P&gt;
&lt;P&gt;Kindly ask you create a new topic to treat this new question pls&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-match-of-values-of-our-interest-if-it-it-is-singly/m-p/895265#M353697</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-09-21T14:21:07Z</dc:date>
    </item>
  </channel>
</rss>

