<?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: Why is a user-defined format only being applied to the first class? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775760#M246614</link>
    <description>Also looks like SCAN() may be useful as well since it's just taking the last portion?&lt;BR /&gt;&lt;BR /&gt;new_var = scan(var, 2, "-");</description>
    <pubDate>Thu, 21 Oct 2021 21:12:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-21T21:12:37Z</dc:date>
    <item>
      <title>Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775758#M246612</link>
      <description>&lt;P&gt;I made this format. When I apply it to my data, only the first value is being changed (from "01-P" to "P"). What am I missing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format library=caus; 
	value $tmp 
		"01-P" = "P"
		"02-B" = "B"
		"03-E" = "E"
		"04-P" = "P"
		"05-CU" = "CU"
                "07-C" = "C"
		;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775758#M246612</guid>
      <dc:creator>kz_</dc:creator>
      <dc:date>2021-10-21T21:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775759#M246613</link>
      <description>Show how you tried to use it - did you ensure the new variable has the required length needed?</description>
      <pubDate>Thu, 21 Oct 2021 21:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775759#M246613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-21T21:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775760#M246614</link>
      <description>Also looks like SCAN() may be useful as well since it's just taking the last portion?&lt;BR /&gt;&lt;BR /&gt;new_var = scan(var, 2, "-");</description>
      <pubDate>Thu, 21 Oct 2021 21:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775760#M246614</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-21T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775761#M246615</link>
      <description>Nevermind! I refreshed SAS and it works. No idea what was going on, but I also don't know how to delete this post.</description>
      <pubDate>Thu, 21 Oct 2021 21:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775761#M246615</guid>
      <dc:creator>kz_</dc:creator>
      <dc:date>2021-10-21T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775762#M246616</link>
      <description>Thank you. I got it to work by refreshing.</description>
      <pubDate>Thu, 21 Oct 2021 21:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775762#M246616</guid>
      <dc:creator>kz_</dc:creator>
      <dc:date>2021-10-21T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775779#M246626</link>
      <description>&lt;P&gt;You don't delete posts, you just update them as answered.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775779#M246626</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-21T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a user-defined format only being applied to the first class?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775781#M246627</link>
      <description>Preferably with the answer!&lt;BR /&gt;&lt;BR /&gt;Someone else may have the same issue, whatever it is &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-a-user-defined-format-only-being-applied-to-the-first/m-p/775781#M246627</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-21T22:40:09Z</dc:date>
    </item>
  </channel>
</rss>

