<?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: contain(1) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266680#M52611</link>
    <description>&lt;P&gt;If you read this as part of a SAS program, it means a DATA step contains an array named CONTAIN. &amp;nbsp;That statement would assign (as the value of VARIABLE) the first element in the array.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 12:51:56 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-04-27T12:51:56Z</dc:date>
    <item>
      <title>contain(1)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266670#M52609</link>
      <description>&lt;P&gt;I read variable=contain(1)......&lt;/P&gt;&lt;P&gt;IS it posibble to write theassignement above?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266670#M52609</guid>
      <dc:creator>cons</dc:creator>
      <dc:date>2016-04-27T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: contain(1)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266671#M52610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you be a little bit more verbose in the description of the problem, perhaps posting example test data (form of a datastep) and what the output should look like. &amp;nbsp;I am going to guess that 1 is a character, and you want to search in a string of characters to see if that character exists and if so assign a boolean response to variable 1 being found, 0 not being found:&lt;/P&gt;
&lt;PRE&gt;data have;&lt;BR /&gt; input a $;&lt;BR /&gt; b=ifn(findc(a,"1") &amp;gt; 0,1,0);&lt;BR /&gt;datalines;&lt;BR /&gt;045674&lt;BR /&gt;341232&lt;BR /&gt;run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266671#M52610</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-27T10:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: contain(1)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266680#M52611</link>
      <description>&lt;P&gt;If you read this as part of a SAS program, it means a DATA step contains an array named CONTAIN. &amp;nbsp;That statement would assign (as the value of VARIABLE) the first element in the array.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 12:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/contain-1/m-p/266680#M52611</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-27T12:51:56Z</dc:date>
    </item>
  </channel>
</rss>

