<?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: Proc Format didn't work? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940455#M369141</link>
    <description>&lt;P&gt;Also, if the value is character the format name has to start with a $ .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You LOG would also have shown this for the proc format code:&lt;/P&gt;
&lt;PRE&gt;64   proc format;
65      value eot_test_ce1 '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63'
65 ! '82163-7'='CoV 229E';
ERROR: The format name EOT_TEST_CE1 ends in a number, which is invalid.
NOTE: The previous statement has been deleted.
66   run;
&lt;/PRE&gt;
&lt;P&gt;Replacing the final digit is not sufficient either because the values you provide are not compatible with a numeric format which the assigned behavior if the format does not start with a $.&lt;/P&gt;
&lt;PRE&gt;67   proc format library=work;
68      value eot_test_ce '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63'
68 ! '82163-7'='CoV 229E';
ERROR: The quoted string '82160-3' is not acceptable to a numeric format or informat.
NOTE: The previous statement has been deleted.
69   run;

&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Aug 2024 13:59:35 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-08-22T13:59:35Z</dc:date>
    <item>
      <title>Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940450#M369137</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a format code before Proc Freq.&amp;nbsp; However, an error message was shown in the log. Does the format only work in the numeric variables? Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value eot_test_ce1 '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63' '82163-7'='CoV 229E';
run;

Proc freq data=Sample.;
 table spec_id*eot_test_ce1 / nopercent norow nocol;
 format eot_test_ce1 eot_test_ce1.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The format EOT_TEST_CE was not found or could not be loaded.&lt;BR /&gt;MPRINT(AAA): format eot_test_ce1 eot_test_ce1.;&lt;BR /&gt;MPRINT(AAA): run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940450#M369137</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-08-22T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940453#M369139</link>
      <description>&lt;P&gt;When&amp;nbsp; you create a format, the name of the format cannot end with a number.&amp;nbsp; Change the name slightly and the program should work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value eot_test_ce1_ '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63' '82163-7'='CoV 229E';
run;

Proc freq data=Sample.;
 table spec_id*eot_test_ce1 / nopercent norow nocol;
 format eot_test_ce1 eot_test_ce1_.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940453#M369139</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-08-22T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940454#M369140</link>
      <description>&lt;PRE&gt;ERROR: The format EOT_TEST_CE was not found or could not be loaded.&lt;/PRE&gt;
&lt;P&gt;seems to indicate that SAS was looking for a&amp;nbsp;&lt;EM&gt;numeric&lt;/EM&gt; format (no $ at the beginning of the format name), while you try to create a character format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Big hint: always fix your codes top down. The first ERROR, WARNING or unexpected NOTE is the most important one. All others might be a consequence.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940454#M369140</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-08-22T13:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940455#M369141</link>
      <description>&lt;P&gt;Also, if the value is character the format name has to start with a $ .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You LOG would also have shown this for the proc format code:&lt;/P&gt;
&lt;PRE&gt;64   proc format;
65      value eot_test_ce1 '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63'
65 ! '82163-7'='CoV 229E';
ERROR: The format name EOT_TEST_CE1 ends in a number, which is invalid.
NOTE: The previous statement has been deleted.
66   run;
&lt;/PRE&gt;
&lt;P&gt;Replacing the final digit is not sufficient either because the values you provide are not compatible with a numeric format which the assigned behavior if the format does not start with a $.&lt;/P&gt;
&lt;PRE&gt;67   proc format library=work;
68      value eot_test_ce '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63'
68 ! '82163-7'='CoV 229E';
ERROR: The quoted string '82160-3' is not acceptable to a numeric format or informat.
NOTE: The previous statement has been deleted.
69   run;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940455#M369141</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-22T13:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940457#M369142</link>
      <description>&lt;PRE&gt;eot_test_ce1 is charater variable&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Changed to&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format eot_test_ce1 eot_test_ce1_.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Still did not work&lt;/P&gt;
&lt;PRE&gt;ERROR: The format EOT_TEST_CE1_ was not found or could not be loaded.&lt;BR /&gt;MPRINT(AAA): format eot_test_ce1 eot_test_ce1_.;&lt;BR /&gt;MPRINT(AAA): run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940457#M369142</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-08-22T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format didn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940458#M369143</link>
      <description>&lt;P&gt;Which part of CHARACTER formats start with $ did you miss?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format ;
	value $eot_test_ce1_ '82160-3'='Adenovirus' '82161-1'='Cov HKU1' '82162-9'='CoV NL63' '82163-7'='CoV 229E';
run;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;format eot_test_ce1 $eot_test_ce1_.;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-didn-t-work/m-p/940458#M369143</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-22T14:16:07Z</dc:date>
    </item>
  </channel>
</rss>

