<?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 to extract information from one Variable with several characteristics and use those informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437124#M108810</link>
    <description>&lt;P&gt;Ok I assume this is how your data might look like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "Group" is what differentiates one study from the other. It should be your primary key in your source dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Report_Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;No_Of_patients&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Beendigung&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Abschlussbericht&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Änderungsanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 750&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Änderungsanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;400&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, the first study has all the 4 categories, while the 2nd study is only at change report level as it is still ongoing and the 3rd study has just begun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data toto;&lt;/P&gt;&lt;P&gt;set&amp;nbsp;&lt;SPAN&gt;saspms.datensatz_pms_awb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If&amp;nbsp;Report_Type = "Beendigung" then Hierarchy = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else if&amp;nbsp;Report_Type = "Abschlussbericht&amp;nbsp;" then Hierarchy = 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else if&amp;nbsp;Report_Type = "Änderungsanzeige" then Hierarchy = 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Hierarchy = 4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* now every record will have a flag value set from 1 to 4 based on the hierarchy of fetching information from reports*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Sort this information so that the first record for each group will always have the record which must be picked*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sort data = toto;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by Group Hierarchy;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Pick the first record for each group*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data&amp;nbsp;saspms.datensatz_pms_Anzeige;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set toto;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If first.Group;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have made a couple of assumptions in this solution.&lt;/P&gt;&lt;P&gt;Let me know if it works or is your data looking different to what i have assumed.&lt;/P&gt;&lt;P&gt;Please share sample data if possible if the above doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 15:10:40 GMT</pubDate>
    <dc:creator>ashkar</dc:creator>
    <dc:date>2018-02-14T15:10:40Z</dc:date>
    <item>
      <title>How to extract information from one Variable with several characteristics and use those information?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437032#M108779</link>
      <description>&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;Dear SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need your help, as I dont know how to do this - again!&lt;/P&gt;&lt;P&gt;I have data about a medicinal study which are included in different reports. There are different types of reports and they are all in the&amp;nbsp; Variable "Art_der_Anzeige" (=type of report) which has 4 characteristics: 1. Beendigung (=last final report), 2. Abschlussbericht (=final report) 3. Änderungsanzeige (change report) and 4. Erstanzeige (=first report). What I have to do, is to use the information from the last final report, but if there is no final report yet, I have to use the information from final report. If the study is not completed yet I habe to use information from change report and if even thats not published I have to use the data from the first report. How to do this???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like that, but of course it didnt work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data saspms.datensatz_pms_Anzeige;&lt;BR /&gt;set saspms.datensatz_pms_awb;&lt;BR /&gt;Anzeige = input (Art_der_Anzeige);&lt;BR /&gt;if Beendigung = 1 then (use information from:) Anzeige = Beendigung;&lt;BR /&gt;if Beendigung = 0 and Abschlussbericht= 1 then Anzeige =Abschlussbericht;&lt;BR /&gt;if Beendigung = 0 and Abschlussbericht = 0 then Anzeige = Änderungsbericht;&lt;BR /&gt;if Beendigung = 0 and Abschlussbericht = 0 and Änderungsbericht = 0 then Anzeige= Erstanzeige;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;r&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="awb.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18523i69A50EB819A0F8DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="awb.PNG" alt="awb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437032#M108779</guid>
      <dc:creator>marysmith</dc:creator>
      <dc:date>2018-02-14T10:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437038#M108783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I understood your question completely.&lt;/P&gt;&lt;P&gt;Do you want to read a particular record in your&amp;nbsp;&lt;SPAN&gt;saspms.datensatz_pms_awb dataset based on the hierarchy you have mentioned for a group?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In that case, try setting a flag value to each category(1,2,3,4 based on the hierarchy) within a group and sort the records based on this flag value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And pick the very first record in your group using if first.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437038#M108783</guid>
      <dc:creator>ashkar</dc:creator>
      <dc:date>2018-02-14T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437039#M108784</link>
      <description>Hello thank you for your reply:&lt;BR /&gt;What I need to do is to use the information from the last final report if existing. If not, I need SAS to use the information from the final report. If there is no last final report and no final report sas should use the information from change report and if there is no last final report, final report and no change report, in this case I need to take the information from the first report...&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437039#M108784</guid>
      <dc:creator>marysmith</dc:creator>
      <dc:date>2018-02-14T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437041#M108786</link>
      <description>&lt;P&gt;When you say use the information from a particular report, all that information is lying your&amp;nbsp;&lt;SPAN&gt;saspms.datensatz_pms_awb dataset , right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And&amp;nbsp;for what group are you checking if the data exists in a particular report or not?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;In cant be on the whole set of data.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437041#M108786</guid>
      <dc:creator>ashkar</dc:creator>
      <dc:date>2018-02-14T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437043#M108787</link>
      <description>&lt;P&gt;Sorry, you need to supply some clear cut cases for us to understand.&amp;nbsp; You seem to be mixing up outputs and data.&amp;nbsp; What is it you have, and what is it you want.&amp;nbsp; E.g.&lt;/P&gt;
&lt;P&gt;I have two sets of possible data&lt;/P&gt;
&lt;P&gt;1) Final data called final in libname final&lt;/P&gt;
&lt;P&gt;2) Final data in report, called final in libname finalrep&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My program needs to work off 2) if present, and 1) if not.&amp;nbsp; Therefore:&lt;/P&gt;
&lt;PRE&gt;%macro SetLib;

  %if exist(finalrep.final) %then %do;&lt;BR /&gt;    libname mydata ".../final";&lt;BR /&gt;  %end;&lt;BR /&gt;  %else %do;&lt;BR /&gt;    libname mydata ".../finalrep";&lt;BR /&gt;  %end;&lt;BR /&gt; 
%mend SetLib;&lt;BR /&gt;&lt;BR /&gt;/* Now here is my general code based on that data */&lt;BR /&gt;data want;&lt;BR /&gt;  set mydata.final;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;In this way we choose to set our libname to one or the other data and all further code uses that one libname.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437043#M108787</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-14T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437045#M108788</link>
      <description>Thank you for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;1. Yes, exactly it is, all that information is lying in saspms.datensatz_pms_awb&lt;BR /&gt;&lt;BR /&gt;2. Like for example I need to know how many patients were in this study. And that's variates from report to report. At the beginning they are planning to interview 1000 patients , but sometimes the last final report contains only 500 patients. So I always need the information from the last final report, but some of the studies are ongoing and not finished yet, so I need to use the information from the first report or change report..&lt;BR /&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437045#M108788</guid>
      <dc:creator>marysmith</dc:creator>
      <dc:date>2018-02-14T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437124#M108810</link>
      <description>&lt;P&gt;Ok I assume this is how your data might look like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "Group" is what differentiates one study from the other. It should be your primary key in your source dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Report_Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;No_Of_patients&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Beendigung&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Abschlussbericht&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Änderungsanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 750&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Änderungsanzeige&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;350&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Study3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Erstanzeige&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;400&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, the first study has all the 4 categories, while the 2nd study is only at change report level as it is still ongoing and the 3rd study has just begun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data toto;&lt;/P&gt;&lt;P&gt;set&amp;nbsp;&lt;SPAN&gt;saspms.datensatz_pms_awb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If&amp;nbsp;Report_Type = "Beendigung" then Hierarchy = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else if&amp;nbsp;Report_Type = "Abschlussbericht&amp;nbsp;" then Hierarchy = 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else if&amp;nbsp;Report_Type = "Änderungsanzeige" then Hierarchy = 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Hierarchy = 4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* now every record will have a flag value set from 1 to 4 based on the hierarchy of fetching information from reports*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Sort this information so that the first record for each group will always have the record which must be picked*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sort data = toto;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by Group Hierarchy;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Pick the first record for each group*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data&amp;nbsp;saspms.datensatz_pms_Anzeige;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;set toto;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If first.Group;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have made a couple of assumptions in this solution.&lt;/P&gt;&lt;P&gt;Let me know if it works or is your data looking different to what i have assumed.&lt;/P&gt;&lt;P&gt;Please share sample data if possible if the above doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 15:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/437124#M108810</guid>
      <dc:creator>ashkar</dc:creator>
      <dc:date>2018-02-14T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract information from one Variable with several characteristics and use those informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/438953#M109483</link>
      <description>&lt;P&gt;Thank you for your reply. I will let you know if it worked out for me! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-information-from-one-Variable-with-several/m-p/438953#M109483</guid>
      <dc:creator>marysmith</dc:creator>
      <dc:date>2018-02-21T15:23:03Z</dc:date>
    </item>
  </channel>
</rss>

