<?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: double observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399731#M96841</link>
    <description>&lt;P&gt;Check subjid S1287, it will be outputted 3 times, the reason is that it fulfills these conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; compress(actarm) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"BLINDED"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SAFFL=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Y'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dsreas_num_BLINDED&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;All of these has an output statement, you have to check your conditions again if this is not the desired result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;//Fredrik&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 10:32:13 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2017-09-29T10:32:13Z</dc:date>
    <item>
      <title>double observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399726#M96837</link>
      <description>&lt;P&gt;I have the below code with conditions and when i run it it creates double observations.&lt;/P&gt;
&lt;P&gt;I am creating a dataset which gives 1 if it satisfies a condition for each treatment group. But it resolves seperately and creates duplictes.&lt;/P&gt;
&lt;P&gt;i use the below condition to have treatment wise but it duplicates like below in my datastep&lt;/P&gt;
&lt;P&gt;%** Loop for each arm (to avoid transposing the data later) **;&lt;BR /&gt; %do k = 1 %to %sysfunc(countw(&amp;amp;ArmList., #)); %** Start for each ArmVar **;&lt;BR /&gt; if compress(&amp;amp;ArmVar.) = "%scan(&amp;amp;ArmList.,&amp;amp;k., #)" then do; %** if ArmVar condition **;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;and it is resolved to&amp;nbsp; code attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can any one help me what i am doing wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399726#M96837</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-09-29T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: double observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399731#M96841</link>
      <description>&lt;P&gt;Check subjid S1287, it will be outputted 3 times, the reason is that it fulfills these conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; compress(actarm) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"BLINDED"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SAFFL=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Y'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dsreas_num_BLINDED&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;All of these has an output statement, you have to check your conditions again if this is not the desired result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;//Fredrik&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 10:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399731#M96841</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-29T10:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: double observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399732#M96842</link>
      <description>&lt;P&gt;If it fulfills all conditions then it should be multiple. But what i get is multiple obs of subjids for almost most of them&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 10:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399732#M96842</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-09-29T10:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: double observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399733#M96843</link>
      <description>&lt;P&gt;I think you need to pick some of the obs you don't want to have multiple times and check the rules for them&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 10:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399733#M96843</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-29T10:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: double observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399739#M96846</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62004"&gt;@vraj1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;If it fulfills all conditions then it should be multiple. But what i get is multiple obs of subjids for almost most of them&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then they all fulfill multiple conditions. Maxim 3: Know your data.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/double-observations/m-p/399739#M96846</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-29T11:09:41Z</dc:date>
    </item>
  </channel>
</rss>

