<?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: Help need in data step code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467029#M119192</link>
    <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; one&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;upcase&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;one&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;^=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'Completed'&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;You upcased the variable but didn't upcase the word 'completed'.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 20:42:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-01T20:42:02Z</dc:date>
    <item>
      <title>Help need in data step code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467027#M119190</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I come across a data step with where statement in set statement. The output in dataset two should have only one obs. But it has two obs. Why where statement is not working as "IF" statement . Thank you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;data one;
length ONE $10;
input ONE $ TWO;
datalines;
Completed  1
un 2
;
data two;
set one(where=(upcase(one)^='Completed'));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467027#M119190</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2018-06-01T20:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in data step code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467028#M119191</link>
      <description>&lt;P&gt;Correction:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
length ONE $10;
input ONE $ TWO;
datalines;
Completed  1
un 2
;
data two;
set one(where=(upcase(one)^='COMPLETED'));
run;&lt;BR /&gt;&lt;BR /&gt;/*or*/&lt;BR /&gt;&lt;BR /&gt;data one;&lt;BR /&gt;length ONE $10;&lt;BR /&gt;input ONE $ TWO;&lt;BR /&gt;datalines;&lt;BR /&gt;Completed 1&lt;BR /&gt;un 2&lt;BR /&gt;;&lt;BR /&gt;data two;&lt;BR /&gt;set one(where=((one)^='Completed'));&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467028#M119191</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-01T20:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in data step code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467029#M119192</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; one&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;upcase&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;one&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;^=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'Completed'&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;You upcased the variable but didn't upcase the word 'completed'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-need-in-data-step-code/m-p/467029#M119192</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-01T20:42:02Z</dc:date>
    </item>
  </channel>
</rss>

