<?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 Case When Vs Proc Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795517#M255181</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Is it more efficient to replace Case when by proc Format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 16:21:20 GMT</pubDate>
    <dc:creator>ssafmed</dc:creator>
    <dc:date>2022-02-10T16:21:20Z</dc:date>
    <item>
      <title>Case When Vs Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795517#M255181</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Is it more efficient to replace Case when by proc Format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795517#M255181</guid>
      <dc:creator>ssafmed</dc:creator>
      <dc:date>2022-02-10T16:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Case When Vs Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795520#M255183</link>
      <description>&lt;P&gt;Yes, it is more efficient and if you're doing it in more than one place, very recommended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/196305"&gt;@ssafmed&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Is it more efficient to replace Case when by proc Format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795520#M255183</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-10T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Case When Vs Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795523#M255184</link>
      <description>&lt;P&gt;I would add that the larger the data set and the greater the number of "cases" involved the more friendly the use of a format becomes.&lt;/P&gt;
&lt;P&gt;Case/when is pretty verbose plus requires running the entire data set through the transformation when the rules change. If your data set is large the time just to execute the transformation can become significant. Using a format on values for analysis or reporting pretty much skips that processing time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also a data set of values can be used to create formats if your rules are provided in a nice structure this may be a quick way to get the behavior you need.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795523#M255184</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-10T16:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Case When Vs Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795525#M255185</link>
      <description>&lt;P&gt;Typically, PROC FORMAT uses less space in the SAS data set than creating the values as text strings. PROC FORMAT has a lot of other benefits as well ... one benefit is that if you decide your categories need to be changed, you can just change the format, rather than re-running the SQL to extract the data and apply the CASE statement.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When-Vs-Proc-Format/m-p/795525#M255185</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-10T16:53:28Z</dc:date>
    </item>
  </channel>
</rss>

