<?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: simple array question II in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443600#M110993</link>
    <description>&lt;P&gt;It worked, but it's now creating records when the array finds an observation with both those values (i.e., the observation has 9359 and 9351). I can't use the OR statement in my code between '9359' and '9351' - how do I tell the array then to just search for one?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 03:12:19 GMT</pubDate>
    <dc:creator>Angmar</dc:creator>
    <dc:date>2018-03-08T03:12:19Z</dc:date>
    <item>
      <title>simple array question II</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443598#M110991</link>
      <description>&lt;P&gt;How would I use an array to extract ONLY observations/records that have the values '9351' '9359' (character values)? Below is my code (I made a new variable previously, but it would be better if I just extracted the records I wanted instead of identifying them with a new variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cuthip;&lt;BR /&gt;set allrecords;&lt;BR /&gt;array procedure (3) $ prcode1-prcode3;&lt;BR /&gt;do x=1 to 3;&lt;BR /&gt;if procedure(x) in ('9351' '9359') then newvar=1;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443598#M110991</guid>
      <dc:creator>Angmar</dc:creator>
      <dc:date>2018-03-08T03:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: simple array question II</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443599#M110992</link>
      <description>&lt;P&gt;&lt;SPAN&gt;if procedure(x) in ('9351' '9359') then output;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443599#M110992</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-08T03:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: simple array question II</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443600#M110993</link>
      <description>&lt;P&gt;It worked, but it's now creating records when the array finds an observation with both those values (i.e., the observation has 9359 and 9351). I can't use the OR statement in my code between '9359' and '9351' - how do I tell the array then to just search for one?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443600#M110993</guid>
      <dc:creator>Angmar</dc:creator>
      <dc:date>2018-03-08T03:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: simple array question II</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443601#M110994</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Something like this should work too, no arrays:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data cuthip;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;set allrecords;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;if index('9351', catx('-',of prcode1-prcode3)) or index('9359', catx('-',of prcode1-prcode3));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443601#M110994</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-08T03:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: simple array question II</title>
      <link>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443640#M111010</link>
      <description>&lt;P&gt;Alternatively:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if procedure(x) in ('9351' '9359') then do;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;output;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;delete;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 06:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/simple-array-question-II/m-p/443640#M111010</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-08T06:06:26Z</dc:date>
    </item>
  </channel>
</rss>

