<?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 How to Determine Alternatives to Rejected Drugs within Time Window in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-Determine-Alternatives-to-Rejected-Drugs-within-Time/m-p/606321#M17379</link>
    <description>&lt;P&gt;For the target drugs in the GPI column, I’d like to know if an alternative drug (column I)&lt;BR /&gt;was filled within 7 days of the target drug reject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; WORK&lt;SPAN class="token punctuation"&gt;.MESSAGE&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; datalines&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; fill_date GPI Alt_1 Alt_2 Alt_3 etc.&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt; &lt;SPAN class="token keyword"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt; &lt;BR /&gt;6/1/19 A B C D              &lt;BR /&gt; 6/25/19 E F              &lt;BR /&gt; 5/14/19 G H B C D F Y Z                 
 &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can isolate the claims that were rejected, but am not sure how to extract the alternatives within the time frame. Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 22:33:19 GMT</pubDate>
    <dc:creator>tennis1</dc:creator>
    <dc:date>2019-11-21T22:33:19Z</dc:date>
    <item>
      <title>How to Determine Alternatives to Rejected Drugs within Time Window</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Determine-Alternatives-to-Rejected-Drugs-within-Time/m-p/606321#M17379</link>
      <description>&lt;P&gt;For the target drugs in the GPI column, I’d like to know if an alternative drug (column I)&lt;BR /&gt;was filled within 7 days of the target drug reject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; WORK&lt;SPAN class="token punctuation"&gt;.MESSAGE&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; datalines&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; fill_date GPI Alt_1 Alt_2 Alt_3 etc.&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt; &lt;SPAN class="token keyword"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt; &lt;BR /&gt;6/1/19 A B C D              &lt;BR /&gt; 6/25/19 E F              &lt;BR /&gt; 5/14/19 G H B C D F Y Z                 
 &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can isolate the claims that were rejected, but am not sure how to extract the alternatives within the time frame. Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Determine-Alternatives-to-Rejected-Drugs-within-Time/m-p/606321#M17379</guid>
      <dc:creator>tennis1</dc:creator>
      <dc:date>2019-11-21T22:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine Alternatives to Rejected Drugs within Time Window</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Determine-Alternatives-to-Rejected-Drugs-within-Time/m-p/606339#M17384</link>
      <description>&lt;P&gt;Please show what you expect the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And please make sure that your data step generates a data set that you expect. What appears to be posted will only have one record. Datalines should not be on the line with "datalines;" as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to use WHICHC to find which variable has a value but from the scrambled data step you posted I don't see any likely candidates for the "gpi" to be found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 23:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Determine-Alternatives-to-Rejected-Drugs-within-Time/m-p/606339#M17384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-21T23:21:28Z</dc:date>
    </item>
  </channel>
</rss>

