<?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 Reference character format names in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851079#M37305</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When referencing a character format name, is the $ required?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;proc format lib=formtlib;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value jobfmt 'M' = 'Manager'&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'E' = 'Employeed';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If trying to associate the jobfmt with a variable in a format statement:&lt;/P&gt;&lt;P&gt;format jobtitle $jobfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is the $ required for jobfmt or optional?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Dec 2022 21:16:55 GMT</pubDate>
    <dc:creator>cosmid</dc:creator>
    <dc:date>2022-12-25T21:16:55Z</dc:date>
    <item>
      <title>Reference character format names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851079#M37305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When referencing a character format name, is the $ required?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;proc format lib=formtlib;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value jobfmt 'M' = 'Manager'&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'E' = 'Employeed';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If trying to associate the jobfmt with a variable in a format statement:&lt;/P&gt;&lt;P&gt;format jobtitle $jobfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is the $ required for jobfmt or optional?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 21:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851079#M37305</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2022-12-25T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reference character format names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851081#M37307</link>
      <description>&lt;P&gt;It would be a lot quicker to test for yourself. You won't be able to create the SAS format in the first place if you don't put a dollar sign in the name:&lt;/P&gt;
&lt;PRE&gt;28         proc format;
29           value sexfmt
30         'F'='Female'
ERROR: The quoted string 'F' is not acceptable to a numeric format or informat.
31         'M'='Male'
32         ;
NOTE: The previous statement has been deleted.
33         run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 21:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851081#M37307</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-25T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reference character format names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851092#M37312</link>
      <description>Hi SASKiwi again!&lt;BR /&gt;&lt;BR /&gt;Yes, it would be quicker just to test it but I won't have access to SAS until tomorrow.&lt;BR /&gt;&lt;BR /&gt;I know when assigning the format-name in the VALUE statement, you need $ for the format-name for character values. My question was, is the $ needed when you reference that format-name.&lt;BR /&gt;&lt;BR /&gt;In your example, when I reference sexfmt in a format statement:&lt;BR /&gt;format sex $sexfmt.;&lt;BR /&gt;&lt;BR /&gt;I wanted to know in that format statement, if the $ is optional or required.&lt;BR /&gt;&lt;BR /&gt;Thanks again for helping me with all of my questions!</description>
      <pubDate>Sun, 25 Dec 2022 22:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851092#M37312</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2022-12-25T22:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reference character format names</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851094#M37313</link>
      <description>&lt;P&gt;This is the error you get if you drop the dollar sign from the format:&lt;/P&gt;
&lt;PRE&gt;35         proc print data=sashelp.class;
36         format sex sexfmt.;
ERROR: You are trying to use the numeric format SEXFMT with the character variable Sex in data set SASHELP.CLASS.
37         run;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Dec 2022 22:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reference-character-format-names/m-p/851094#M37313</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-25T22:33:57Z</dc:date>
    </item>
  </channel>
</rss>

