<?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: Query for Selecting Content in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604567#M17103</link>
    <description>I have 14 lakh observations in above dataset. Want to select content 'BRG' from Id and update category accordingly</description>
    <pubDate>Fri, 15 Nov 2019 18:02:24 GMT</pubDate>
    <dc:creator>sanjaymane7</dc:creator>
    <dc:date>2019-11-15T18:02:24Z</dc:date>
    <item>
      <title>Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604541#M17094</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data set and want to select particular contents from variables and want to update desire value in another variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input id category&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;11BRG234&lt;/P&gt;&lt;P&gt;12IMF456&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;expecting below result in data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category&lt;/P&gt;&lt;P&gt;11BRG234&amp;nbsp; &amp;nbsp;Broker&lt;/P&gt;&lt;P&gt;12IMF456&amp;nbsp; &amp;nbsp; Agent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 16:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604541#M17094</guid>
      <dc:creator>sanjaymane7</dc:creator>
      <dc:date>2019-11-15T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604567#M17103</link>
      <description>I have 14 lakh observations in above dataset. Want to select content 'BRG' from Id and update category accordingly</description>
      <pubDate>Fri, 15 Nov 2019 18:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604567#M17103</guid>
      <dc:creator>sanjaymane7</dc:creator>
      <dc:date>2019-11-15T18:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604571#M17106</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You apparently want all observations with the string "BRG" in the id variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set test;
  where find(id,'BRG');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which filters through all observations in which the FIND function returns a non-zero value. &amp;nbsp; Since the FIND function returns the character position at which the string 'BRG' appears in the id variable.&amp;nbsp; It returns a zero when the string is not found.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 18:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604571#M17106</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-11-15T18:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604595#M17118</link>
      <description>Thanks. After this filter, I want write as 'broker' in another column/ variable.</description>
      <pubDate>Fri, 15 Nov 2019 19:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604595#M17118</guid>
      <dc:creator>sanjaymane7</dc:creator>
      <dc:date>2019-11-15T19:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604665#M17125</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set test;
  if find(id,'BRG') then category = 'Broker';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2019 04:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604665#M17125</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-16T04:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Selecting Content</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604797#M17143</link>
      <description>Hi, It works. Thank you so much</description>
      <pubDate>Sun, 17 Nov 2019 14:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Query-for-Selecting-Content/m-p/604797#M17143</guid>
      <dc:creator>sanjaymane7</dc:creator>
      <dc:date>2019-11-17T14:40:13Z</dc:date>
    </item>
  </channel>
</rss>

