<?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: Flagging records following exclusion criteria in a specific part of report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270438#M53739</link>
    <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;This is a nice lesson you have given me in context of use of find function nested within another find function. Definitely I am going to use it in my future analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately in this case I don't know the delimiter to be 2. or 2) or B. or B); so I will be looking for some other alternative approach such as use of perl. or some loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thank you for a wonderful tips of using double find function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great weekend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 20:08:06 GMT</pubDate>
    <dc:creator>DeepakSwain</dc:creator>
    <dc:date>2016-05-13T20:08:06Z</dc:date>
    <item>
      <title>Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270101#M53615</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to create flag for a report having multiple sections by applying exclusion criteria. As the exclusion criteria are also existing in other part of the same report, the outcome for each section is also affected. At the same time, I also want to execute my query at specific section&amp;nbsp;of the report. Can you kindly guide me further. I have given below a very simple sas just to begin the flow of discussion&amp;nbsp;(the worst code you might have ever seen).&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA TEST;
REPORT= "1) POLYP AT LEFT COLON: TUBULOVILLOUS. NEGATIVE FOR SERRATED.
2) POLYP AT RIGHT COLON: INFLAMMATORY. NEGATIVE FOR TUBULOVILLOUS. 
3) POLYP FROM TRANSVERSE COLON: NEGATIVE FOR INFLAMMATORY BUT SERRATED IS FOUND.";

/*INCLUSION CRITERIA*/
IF FIND(REPORT, TUBULOVILLOUS)  THEN TUBULOVILLOUS=1;
IF FIND(REPORT, INFLAMMATORY)  THEN INFLAMMATORY =1;
IF FIND(REPORT, SERRATED)  THEN SERRATED =1;      

/*EXCLUSION CRITERIA*/
IF FIND(REPORT, "NEGATIVE FOR TUBULOVILLOUS") THEN EXCLUDE_TUBULOVILLOUS=1;
IF FIND(REPORT, "NEGATIVE FOR INFLAMMATORY") THEN EXCLUDE_INFLAMMATORY =1;
IF FIND(REPORT, "NEGATIVE FOR SERRATED") THEN EXCLUDE_SERRATED =1; 

/*FINAL FLAGGING*/
IF TUBULOVILLOUS=1 AND EXCLUDE_TUBULOVILLOUS NE 1 THEN FLAG_TUBULOVILLOUS=1;
IF INFLAMMATORY =1 AND EXCLUDE_INFLAMMATORY NE 1 THEN FLAG_INFLAMMATORY =1;
IF SERRATED =1 AND EXCLUDE_SERRATED NE 1 THEN FLAG_SERRATED =1;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance for your kind reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 16:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270101#M53615</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-05-12T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270140#M53628</link>
      <description>&lt;P&gt;Not even close to worse I've seen (or written).&lt;/P&gt;
&lt;P&gt;The only thing I see at this time is the first inclusion criteria is missing quotes for the literal string comparison values as were correctly used in the exclusion. Other than that it looks like the code should do what I think you are attempting.&lt;/P&gt;
&lt;P&gt;If you have not UPCASEd the Report string prior to this or use the FIND modifiers i and t in the comparisons.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270140#M53628</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-12T18:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270188#M53645</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While flagging report part 1 due to presence of inclusion criteria, it is not flagged because its' exclusion criteria is avalable in report part 2. So i am looking for some code which will restrict my exclusion criteria to specific part of the report and it will not see the complete report for exclusion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 20:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270188#M53645</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-05-12T20:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270208#M53652</link>
      <description>&lt;P&gt;You will need to clarify what "exclusion criteria is avalable in report part 2" means. Are you talking about a different data set? Are you trying to match some flags set in a different data set to this one? Are you want to use variables that are not actually in your current data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to provide a much more complete example of what you have and what the expected result should be. Please post any data as data steps.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 20:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270208#M53652</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-12T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270333#M53694</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;For your kind information, each report of a patient is having multiple sections such as 1) &amp;nbsp; 2) &amp;nbsp; 3). All three sections are in a single record. When I try to flag identifying specific words as well as exclusion criteria, because of the existence of same exclusion word in other section of the report, I could not flag it.&lt;/P&gt;&lt;P&gt;I have attached one excel sheet explaining what I am getting and what is my expectation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your kind reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270333#M53694</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-05-13T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270380#M53712</link>
      <description>&lt;P&gt;You have these requirements for&amp;nbsp; "final flagging"&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; TUBULOVILLOUS=&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; INFLAMMATORY =&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; SERRATED =&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;BUT in your example code they are all missing so the final flags cannot be set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;Also you have value that set &lt;/FONT&gt;EXCLUDE_TUBULOVILLOUS,&amp;nbsp; EXCLUDE_INFLAMMATORY and EXCLUDE_SERRATED to 1&lt;/P&gt;
&lt;P&gt;so they would fail the "NE 1" and not set those flags. If you expecte to set those last 3 flags to 1 then you need to reconsider the logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that you need&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; FIND(REPORT, &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"TUBULOVILLOUS"&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;THEN&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; TUBULOVILLOUS=&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; FIND(REPORT, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"INFLAMMATORY"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;THEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; INFLAMMATORY =&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; FIND(REPORT, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"SERRATED"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;THEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt; SERRATED =&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&lt;FONT face="SAS Monospace" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;so those 3 variables are not missing.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;You need more logic if you are trying to find the presence of the phrase &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;NEGATIVE FOR INFLAMMATORY in a different location from simple INFLAMATORY. Such as actually using the result fo FIND as a position and compare results.&lt;/P&gt;
&lt;P&gt;And you will need to account for the key word appearing alone before the Negative and after the negative (case with serrated), which FIND alone isn't as well suited for as it reports on the first found location, so you need to do a lot more parsing on your strings.&lt;/P&gt;
&lt;P&gt;First: determine the maximumn number of times any of your key words may appear, then determine a comparsion between the locations and the eqivalent number of "Negative for" to see if the key word is occuring alone or in combination&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 15:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270380#M53712</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-13T15:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270393#M53719</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;Can you kindly suggest some logic which will help me to flag &lt;FONT color="#FF6600"&gt;part "1)"&lt;/FONT&gt; of the report as FLAG_TUBULOVILLOUS=1 ignoring the&amp;nbsp;EXCLUDE_TUBULOVILLOUS =1 as the exclusion is existing in &lt;FONT color="#FF6600"&gt;part "2)"&lt;/FONT&gt; of the same record and not in &lt;FONT color="#FF6600"&gt;part "1)".&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you in advance for your kind reply.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Deepak&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 16:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270393#M53719</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-05-13T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270416#M53728</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38137"&gt;@DeepakSwain&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Ballardw,&lt;/P&gt;
&lt;P&gt;Can you kindly suggest some logic which will help me to flag &lt;FONT color="#ff6600"&gt;part "1)"&lt;/FONT&gt; of the report as FLAG_TUBULOVILLOUS=1 ignoring the&amp;nbsp;EXCLUDE_TUBULOVILLOUS =1 as the exclusion is existing in &lt;FONT color="#ff6600"&gt;part "2)"&lt;/FONT&gt; of the same record and not in &lt;FONT color="#ff6600"&gt;part "1)".&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you in advance for your kind reply.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Deepak&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here is a brief example of using the optional Start position for Find. The line with Example2 starts searching at the position that the "2)" is found.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   report ="1) THIS IS JUST AN EXAMPLE 2) TO SEARCH FOR EXAMPLE AFTER THE 2)";
   Example1 = find(report,'EXAMPLE');
   Example2 = find(report,'EXAMPLE',find(report,'2)'));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 May 2016 17:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270416#M53728</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-13T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging records following exclusion criteria in a specific part of report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270438#M53739</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;This is a nice lesson you have given me in context of use of find function nested within another find function. Definitely I am going to use it in my future analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately in this case I don't know the delimiter to be 2. or 2) or B. or B); so I will be looking for some other alternative approach such as use of perl. or some loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thank you for a wonderful tips of using double find function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great weekend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 20:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Flagging-records-following-exclusion-criteria-in-a-specific-part/m-p/270438#M53739</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2016-05-13T20:08:06Z</dc:date>
    </item>
  </channel>
</rss>

