<?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: How to return data in a variable if they are of specific value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750664#M236153</link>
    <description>Thanks!</description>
    <pubDate>Sun, 27 Jun 2021 12:39:11 GMT</pubDate>
    <dc:creator>sulaiman1760</dc:creator>
    <dc:date>2021-06-27T12:39:11Z</dc:date>
    <item>
      <title>How to return data in a variable if they are of specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750657#M236149</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in SAS and I am currently working on my first assignment.&lt;/P&gt;&lt;P&gt;I have a PISA data set, where I have to find all the schools that have a reading score above 500.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I do have a variable for school 'schoolid' and a variable for reading score 'score_r'.&lt;/P&gt;&lt;P&gt;I thought about making an if-statement that returns the value in schoolid, whenever they fulfilled score_r&amp;gt;500, but do you know how I can write this in SAS the proper way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Sulaiman.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750657#M236149</guid>
      <dc:creator>sulaiman1760</dc:creator>
      <dc:date>2021-06-27T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data in a variable if they are of specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750659#M236150</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if score_r&amp;gt;500 then ... ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's not really clear to me what you want to have happen when score_r&amp;gt;500, so that part requires more explanation. The value of school_id is already in the variable school_id, so you don't really need to do anything, or maybe I'm just not understanding what you are asking.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750659#M236150</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data in a variable if they are of specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750661#M236151</link>
      <description>We have data for couple schools lets say:&lt;BR /&gt;school1 school2 ...&lt;BR /&gt;they all have a different reading score, so maybe school1 has reading score of 501, that would be score_r=501 and school2 has score_r=499.&lt;BR /&gt;In this task I need to make a code that only returns school1, because that is the only one with score_r&amp;gt;500. Excuse me, if the question was unclear.</description>
      <pubDate>Sun, 27 Jun 2021 12:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750661#M236151</guid>
      <dc:creator>sulaiman1760</dc:creator>
      <dc:date>2021-06-27T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data in a variable if they are of specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750662#M236152</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;In this task I need to make a code that only returns school1, because that is the only one with score_r&amp;gt;500&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you want to eliminate the school with score_r&amp;lt;=500 from the data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if score_r&amp;gt;500;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Jun 2021 12:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750662#M236152</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to return data in a variable if they are of specific value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750664#M236153</link>
      <description>Thanks!</description>
      <pubDate>Sun, 27 Jun 2021 12:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-return-data-in-a-variable-if-they-are-of-specific-value/m-p/750664#M236153</guid>
      <dc:creator>sulaiman1760</dc:creator>
      <dc:date>2021-06-27T12:39:11Z</dc:date>
    </item>
  </channel>
</rss>

