<?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: Creating a new dataset with only certain values of a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-dataset-with-only-certain-values-of-a-variable/m-p/794632#M254803</link>
    <description>where positionID=1 or positionID=2 or.....;&lt;BR /&gt;&lt;BR /&gt;where positionID in (1:22); *for integers only;&lt;BR /&gt;&lt;BR /&gt;where 1&amp;lt;=positionID&amp;lt;=22;</description>
    <pubDate>Fri, 04 Feb 2022 22:29:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-02-04T22:29:27Z</dc:date>
    <item>
      <title>Creating a new dataset with only certain values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-dataset-with-only-certain-values-of-a-variable/m-p/794625#M254802</link>
      <description>&lt;P&gt;I have a dataset of orchestra profiles. Each athlete has a positionID that is a numerical value numbered 1-22. I want to create a new datset with positions 1-5 and 14-16. I've figured out how to do this with just one position number but can't figure out how to create a dataset with all values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data skilled_members;&lt;/P&gt;&lt;P&gt;set profiles;&lt;/P&gt;&lt;P&gt;where positionID = 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to expand this line "where positionID = 1;" to include all the position numbers I get all sorts of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 22:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-dataset-with-only-certain-values-of-a-variable/m-p/794625#M254802</guid>
      <dc:creator>SAS_learneromg</dc:creator>
      <dc:date>2022-02-04T22:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new dataset with only certain values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-dataset-with-only-certain-values-of-a-variable/m-p/794632#M254803</link>
      <description>where positionID=1 or positionID=2 or.....;&lt;BR /&gt;&lt;BR /&gt;where positionID in (1:22); *for integers only;&lt;BR /&gt;&lt;BR /&gt;where 1&amp;lt;=positionID&amp;lt;=22;</description>
      <pubDate>Fri, 04 Feb 2022 22:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-dataset-with-only-certain-values-of-a-variable/m-p/794632#M254803</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-04T22:29:27Z</dc:date>
    </item>
  </channel>
</rss>

