<?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 Find first fee as 1 and corresponding score in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-first-fee-as-1-and-corresponding-score/m-p/663272#M197952</link>
    <description>Hi.&lt;BR /&gt;&lt;BR /&gt;data have ;                                                         &lt;BR /&gt;  input id score_a score_b score_c score_d fee_a fee_b fee_c fee_d want;&lt;BR /&gt;  cards ;                                                           &lt;BR /&gt;111111  70  85  50    60    1  0  3  5	70                              &lt;BR /&gt;222222  80  65  80    70    0  1  4  1	65                              &lt;BR /&gt;333333  60  70  70    100   0  1  0  1	70                              &lt;BR /&gt;444444  60  90  100   100   0  0  0  0	.                              &lt;BR /&gt;555555  40  50  80    70    1  1  1  1	40	                             &lt;BR /&gt;666666  75  80  60    60    4  2  0  1   60                           &lt;BR /&gt;;                                                                   &lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;I have this above data and I would like to find the first fee=1 and the corresponding score (see column want), if there is no fee=1 then want code as missing. How can I do that?&lt;BR /&gt;Thank you!</description>
    <pubDate>Thu, 18 Jun 2020 19:29:31 GMT</pubDate>
    <dc:creator>Emma8</dc:creator>
    <dc:date>2020-06-18T19:29:31Z</dc:date>
    <item>
      <title>Find first fee as 1 and corresponding score</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-first-fee-as-1-and-corresponding-score/m-p/663272#M197952</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;data have ;                                                         &lt;BR /&gt;  input id score_a score_b score_c score_d fee_a fee_b fee_c fee_d want;&lt;BR /&gt;  cards ;                                                           &lt;BR /&gt;111111  70  85  50    60    1  0  3  5	70                              &lt;BR /&gt;222222  80  65  80    70    0  1  4  1	65                              &lt;BR /&gt;333333  60  70  70    100   0  1  0  1	70                              &lt;BR /&gt;444444  60  90  100   100   0  0  0  0	.                              &lt;BR /&gt;555555  40  50  80    70    1  1  1  1	40	                             &lt;BR /&gt;666666  75  80  60    60    4  2  0  1   60                           &lt;BR /&gt;;                                                                   &lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;I have this above data and I would like to find the first fee=1 and the corresponding score (see column want), if there is no fee=1 then want code as missing. How can I do that?&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 18 Jun 2020 19:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-first-fee-as-1-and-corresponding-score/m-p/663272#M197952</guid>
      <dc:creator>Emma8</dc:creator>
      <dc:date>2020-06-18T19:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find first fee as 1 and corresponding score</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-first-fee-as-1-and-corresponding-score/m-p/663294#M197964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/294547"&gt;@Emma8&lt;/a&gt;&amp;nbsp; Please try-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
 array f fee_:;
 array s score_:;
 _n_=whichn(1, of f(*));
 if _n_ then  want=s(_n_);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2020 19:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-first-fee-as-1-and-corresponding-score/m-p/663294#M197964</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-18T19:38:31Z</dc:date>
    </item>
  </channel>
</rss>

