<?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 Question about Integral Values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74582#M21654</link>
    <description>Can you use the mod function? (Since mod(x,1)=0 only if x is an integer). For example, if you want to keep only observations from set 'one' where variable 'x' is integral, you can do this:&lt;BR /&gt;
&lt;BR /&gt;
data newdata;&lt;BR /&gt;
set one;&lt;BR /&gt;
where mod(x,1)=0;&lt;BR /&gt;
run;</description>
    <pubDate>Tue, 06 Oct 2009 18:27:34 GMT</pubDate>
    <dc:creator>martha_sas</dc:creator>
    <dc:date>2009-10-06T18:27:34Z</dc:date>
    <item>
      <title>Simple Question about Integral Values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74581#M21653</link>
      <description>I have a very simple question about case selection in a data step. I wonder what is the command for selecting cases with integral values only, that is, value = 1, 2, 3, ... but I want to exclude the cases with values of 1.5, 2.5, etc. This sounds so simple, something like &lt;IF var="" eq="" integral="" value=""&gt; but I cannot find the proper command. Thanks!

Message was edited by: SASLooker&lt;/IF&gt;</description>
      <pubDate>Tue, 06 Oct 2009 15:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74581#M21653</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-06T15:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Question about Integral Values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74582#M21654</link>
      <description>Can you use the mod function? (Since mod(x,1)=0 only if x is an integer). For example, if you want to keep only observations from set 'one' where variable 'x' is integral, you can do this:&lt;BR /&gt;
&lt;BR /&gt;
data newdata;&lt;BR /&gt;
set one;&lt;BR /&gt;
where mod(x,1)=0;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 06 Oct 2009 18:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74582#M21654</guid>
      <dc:creator>martha_sas</dc:creator>
      <dc:date>2009-10-06T18:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Question about Integral Values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74583#M21655</link>
      <description>thanks! I'll try that.</description>
      <pubDate>Tue, 06 Oct 2009 20:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74583#M21655</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-06T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Question about Integral Values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74584#M21656</link>
      <description>Another simple way how to do that:&lt;BR /&gt;
&lt;BR /&gt;
data two;&lt;BR /&gt;
set one;&lt;BR /&gt;
where x=int(x);&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 07 Oct 2009 10:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74584#M21656</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2009-10-07T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Question about Integral Values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74585#M21657</link>
      <description>Thanks for the two tips. It appears the mod way works better for my case. The int way also works, but it also includes the blanks or missing values, which I don't want. Thanks for both helpers!</description>
      <pubDate>Fri, 09 Oct 2009 15:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simple-Question-about-Integral-Values/m-p/74585#M21657</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-09T15:20:36Z</dc:date>
    </item>
  </channel>
</rss>

