<?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: how to apply prefined formats in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731891#M28459</link>
    <description>&lt;P&gt;The only thing I see wrong is in the FORMAT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax of the format statement is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FORMAT variablename formatname. ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, there must be a dot at the end of the formatname. There is no equal sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you fix that and it still doesn't work, show us the LOG of this DATA step so we can see both your code that is being used and the exact ERROR message. Do not chop out parts of the LOG for this DATA step, we need to see it verbatim, copied as text and pasted into the window that appears when you click on the &amp;lt;/&amp;gt; icon. This preserves the formatting and makes the log more readable — do not provide the log any other way.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 12:51:56 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-04-07T12:51:56Z</dc:date>
    <item>
      <title>how to apply prefined formats</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731885#M28455</link>
      <description>&lt;P&gt;I have a very big data set on a secure server, hence I can not copy paste codes og logs.&lt;/P&gt;&lt;P&gt;I have no been spending days trying to apply on my predefined codes. so What i did so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname fmt "path...";&lt;/P&gt;&lt;P&gt;options fmtsearch=(fmt.uddannelser fmt.diced);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value audd_niveau_L1L2_KT&lt;/P&gt;&lt;P&gt;0="90 uoplyst"&amp;nbsp;&lt;/P&gt;&lt;P&gt;1="10 grundskole"&lt;/P&gt;&lt;P&gt;....goes on for several 100 lines.....;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data udda1&lt;/P&gt;&lt;P&gt;set udda;&lt;/P&gt;&lt;P&gt;format hfaudd default= audd_niveau_L1L2_Kt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it do not work what do I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731885#M28455</guid>
      <dc:creator>Jannie_D</dc:creator>
      <dc:date>2021-04-07T12:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply prefined formats</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731888#M28457</link>
      <description>&lt;P&gt;Look at the log (Maxim 2). The FORMAT statement does not need an equal sign, and actually rejects it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS get an account on SAS on Demand for Academics. There you can recreate code that causes problems and copy/paste code and logs without restrictions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731888#M28457</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-07T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply prefined formats</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731891#M28459</link>
      <description>&lt;P&gt;The only thing I see wrong is in the FORMAT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax of the format statement is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FORMAT variablename formatname. ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, there must be a dot at the end of the formatname. There is no equal sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you fix that and it still doesn't work, show us the LOG of this DATA step so we can see both your code that is being used and the exact ERROR message. Do not chop out parts of the LOG for this DATA step, we need to see it verbatim, copied as text and pasted into the window that appears when you click on the &amp;lt;/&amp;gt; icon. This preserves the formatting and makes the log more readable — do not provide the log any other way.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731891#M28459</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-07T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply prefined formats</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731904#M28461</link>
      <description>You don't indicate what you mean by 'predefined' formats. If you mean that you have a format for a variable name and need to apply them, if they're listed in a data set that can be automated. If there's a pattern it can also be automated. And if you have a lookup file that has the original &amp;amp; new values you can also automate the creation of the format. &lt;BR /&gt;&lt;BR /&gt;This paper is a good read on formats IMO.&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/001-30.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/001-30.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 07 Apr 2021 13:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-apply-prefined-formats/m-p/731904#M28461</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-07T13:42:04Z</dc:date>
    </item>
  </channel>
</rss>

