<?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 the value &amp;quot;1&amp;quot; was generated ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-the-value-quot-1-quot-was-generated/m-p/246492#M46125</link>
    <description>&lt;P&gt;It's a bit circular, To confuse it all, there's a retain statement that keeps the values across the rows, so it looks like it's alternating drugs?&lt;/P&gt;
&lt;P&gt;If you post some sample data tracing the program out may help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HASC=1 if&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DRUG=CAPECITABINE and HASF=0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HASF=1 if&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DRUG=FLUOROURACIL and HASC=1&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 22:04:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-27T22:04:39Z</dc:date>
    <item>
      <title>How the value "1" was generated ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-the-value-quot-1-quot-was-generated/m-p/246487#M46124</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody can tell me how the "hasc = 1 &amp;nbsp;or hasf = 1 " &amp;nbsp;generated during the following programming ? &amp;nbsp;Thank you. &amp;nbsp;Ivy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data &amp;nbsp;test_1 ;&lt;BR /&gt;set test;&lt;BR /&gt;by ID lot admin_date drug;&lt;BR /&gt;retain hasc hasf;&lt;BR /&gt;if first.lot then do;&lt;BR /&gt;hasc=0;&lt;BR /&gt;hasf=0;&lt;BR /&gt;end;&lt;BR /&gt;if drug = "CAPECITABINE" then do;&lt;BR /&gt;if hasf = 1 then drug = "FLUOROURACIL";&lt;BR /&gt;else hasc = 1;&lt;BR /&gt;end;&lt;BR /&gt;if drug = "FLUOROURACIL" then do;&lt;BR /&gt;if hasc = 1 then new_drug = "CAPECITABINE";&lt;BR /&gt;else hasf = 1;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 21:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-the-value-quot-1-quot-was-generated/m-p/246487#M46124</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-01-27T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How the value "1" was generated ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-the-value-quot-1-quot-was-generated/m-p/246492#M46125</link>
      <description>&lt;P&gt;It's a bit circular, To confuse it all, there's a retain statement that keeps the values across the rows, so it looks like it's alternating drugs?&lt;/P&gt;
&lt;P&gt;If you post some sample data tracing the program out may help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HASC=1 if&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DRUG=CAPECITABINE and HASF=0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HASF=1 if&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DRUG=FLUOROURACIL and HASC=1&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 22:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-the-value-quot-1-quot-was-generated/m-p/246492#M46125</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-27T22:04:39Z</dc:date>
    </item>
  </channel>
</rss>

