<?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: What is the function of &amp;quot;case&amp;quot; in this codes? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816262#M322160</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thank you. Are there resources you can share or direct me to for better knowledge?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 21:26:14 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2022-06-02T21:26:14Z</dc:date>
    <item>
      <title>What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816252#M322151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I saw a similar code online.&lt;/P&gt;&lt;P&gt;What is the function of "&lt;STRONG&gt;case&lt;/STRONG&gt;" in this codes? what are they use for?&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;if a ne . then come=1; else come=0;&lt;BR /&gt;if b ne . then go=1;else go=0;&lt;BR /&gt;if c ne . then home=1;else home=0;&lt;BR /&gt;case=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data want2;&lt;BR /&gt;set have2;&lt;BR /&gt;if a ne . then come=1;else come=0;&lt;BR /&gt;if b ne . then go=1;else go=0;&lt;BR /&gt;if c ne . then home=1;else home=0;&lt;BR /&gt;case=0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 20:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816252#M322151</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-06-02T20:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816253#M322152</link>
      <description>It's a variable and being set to a constant across all the data.</description>
      <pubDate>Thu, 02 Jun 2022 20:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816253#M322152</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-02T20:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816262#M322160</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thank you. Are there resources you can share or direct me to for better knowledge?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 21:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816262#M322160</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-06-02T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816263#M322161</link>
      <description>&lt;P&gt;SAS documentation is here:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/helpcenterwlcm/1.0/home.htm" target="_blank"&gt;SAS Help Center: SAS Help Center: Welcome&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Check out free SAS training resources here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/New-SAS-User/bd-p/new-users" target="_blank"&gt;New SAS User&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 21:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816263#M322161</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-06-02T21:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816266#M322163</link>
      <description>In the program you have shown, CASE is totally useless.  However, it is possible (even likely) that CASE actually gets used later, in programming steps that you have not  posted.  If you want to know about the purpose of CASE, show how it gets used later.</description>
      <pubDate>Thu, 02 Jun 2022 22:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816266#M322163</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-06-02T22:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816267#M322164</link>
      <description>&lt;P&gt;In this case not really, it's base knowledge.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a simple assignment operation (case=1). The fact that the variable is called case may be confusing and bad design because CASE often means something else in programming.&amp;nbsp;&lt;BR /&gt;However, the best method to test this is to run it and examine the input and output data in my opinion.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 22:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816267#M322164</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-02T22:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function of "case" in this codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816285#M322172</link>
      <description>&lt;P&gt;CASE is the name of a variable.&lt;/P&gt;
&lt;P&gt;What does the variable mean?&amp;nbsp; Your guess is as good as mine.&lt;/P&gt;
&lt;LI-SPOILER&gt;My guess is that the data in WANT represent the cases and the data in WANT2 represent the controls.&amp;nbsp; I suspect at some point there will be some statistical testing to see if the cases are different than the controls.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 03 Jun 2022 01:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-function-of-quot-case-quot-in-this-codes/m-p/816285#M322172</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-03T01:39:25Z</dc:date>
    </item>
  </channel>
</rss>

