<?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: Applying SAS format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376725#M90455</link>
    <description>Awesome! Thanks a lot!</description>
    <pubDate>Mon, 17 Jul 2017 19:44:39 GMT</pubDate>
    <dc:creator>Neeta</dc:creator>
    <dc:date>2017-07-17T19:44:39Z</dc:date>
    <item>
      <title>Applying SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376707#M90447</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm curious to know what is best solution to following problem. I've a dataset which stores the information about SAS format as a variable value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data chk;&lt;/P&gt;&lt;P&gt;input a $ b $ ;&lt;BR /&gt;cards;&lt;BR /&gt;1 $ch1k.&lt;BR /&gt;3 $ch1k.&lt;BR /&gt;3 $ch2k.&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $ch1k&lt;BR /&gt;1 = "Avg"&lt;BR /&gt;2 = "Good"&lt;BR /&gt;other = " "&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;value $ch2k&lt;BR /&gt;3 = "Low"&lt;BR /&gt;4 = "Super Low"&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, for first 2 observations, I want to apply format $ch1k. and for 3rd observation I want $ch2k. As a result, I&amp;nbsp;want following dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data desired_value;&lt;BR /&gt;input a $ b $ c$;&lt;BR /&gt;cards;&lt;BR /&gt;1 $ch1k. Avg&lt;BR /&gt;3 $ch1k. .&lt;BR /&gt;3 $ch2k. Low&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376707#M90447</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2017-07-17T19:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Applying SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376720#M90452</link>
      <description>&lt;P&gt;Use PUTC, it can take a variable name as a format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;c = putc(a, b);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376720#M90452</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-17T19:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Applying SAS format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376725#M90455</link>
      <description>Awesome! Thanks a lot!</description>
      <pubDate>Mon, 17 Jul 2017 19:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Applying-SAS-format/m-p/376725#M90455</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2017-07-17T19:44:39Z</dc:date>
    </item>
  </channel>
</rss>

