<?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 Question on dollar format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-on-dollar-format/m-p/283839#M57873</link>
    <description>&lt;P&gt;Following macro code&amp;nbsp;only seemed to work if the dollar format was exact. That is, the dollar ranges were &amp;lt;$400, $400-$1000, and over $1000.&amp;nbsp; For the dollar format, if I put “dollar4.” for the $400 macro variable and “dollar5.” for the $1000 macro variable everything worked great.&amp;nbsp; But if I used “dollar5.” and “dollar6.” I would get the&amp;nbsp;error message as below. Appreciate if someone guide me to come past this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value spnd&amp;amp;k.lbl    1 = &amp;amp;ls_lbl.
                    2 = &amp;amp;ms_lbl.
       		    3 = &amp;amp;hs_lbl.
     			          ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SYMBOLGEN:  Macro variable K resolves to 2
SYMBOLGEN:  Macro variable LS_LBL resolves to Less than  $400
SYMBOLGEN:  Macro variable MS_LBL resolves to  $400 to $1,000
ERROR: This range is repeated, or values overlap: 1-1.
SYMBOLGEN:  Macro variable HS_LBL resolves to More than $1,000
NOTE 137-205: Line generated by the invoked macro "RUNREPORTS".
141         row_nbr = &amp;amp;k.;  quit;      proc format;   value trip&amp;amp;k.lbl    1 = &amp;amp;lt_lbl.                       2 = &amp;amp;mt_lbl.
141      !     3 = &amp;amp;ht_lbl.              ;   value spnd&amp;amp;k.lbl    1 = &amp;amp;ls_lbl.                       2 = &amp;amp;ms_lbl.               3 =
                                                                                                                               _
                                                                                                                               22
141      ! &amp;amp;hs_lbl.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, &amp;lt;, =.  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2016 17:13:53 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2016-07-12T17:13:53Z</dc:date>
    <item>
      <title>Question on dollar format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-dollar-format/m-p/283839#M57873</link>
      <description>&lt;P&gt;Following macro code&amp;nbsp;only seemed to work if the dollar format was exact. That is, the dollar ranges were &amp;lt;$400, $400-$1000, and over $1000.&amp;nbsp; For the dollar format, if I put “dollar4.” for the $400 macro variable and “dollar5.” for the $1000 macro variable everything worked great.&amp;nbsp; But if I used “dollar5.” and “dollar6.” I would get the&amp;nbsp;error message as below. Appreciate if someone guide me to come past this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value spnd&amp;amp;k.lbl    1 = &amp;amp;ls_lbl.
                    2 = &amp;amp;ms_lbl.
       		    3 = &amp;amp;hs_lbl.
     			          ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SYMBOLGEN:  Macro variable K resolves to 2
SYMBOLGEN:  Macro variable LS_LBL resolves to Less than  $400
SYMBOLGEN:  Macro variable MS_LBL resolves to  $400 to $1,000
ERROR: This range is repeated, or values overlap: 1-1.
SYMBOLGEN:  Macro variable HS_LBL resolves to More than $1,000
NOTE 137-205: Line generated by the invoked macro "RUNREPORTS".
141         row_nbr = &amp;amp;k.;  quit;      proc format;   value trip&amp;amp;k.lbl    1 = &amp;amp;lt_lbl.                       2 = &amp;amp;mt_lbl.
141      !     3 = &amp;amp;ht_lbl.              ;   value spnd&amp;amp;k.lbl    1 = &amp;amp;ls_lbl.                       2 = &amp;amp;ms_lbl.               3 =
                                                                                                                               _
                                                                                                                               22
141      ! &amp;amp;hs_lbl.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, &amp;lt;, =.  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 17:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-dollar-format/m-p/283839#M57873</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-07-12T17:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dollar format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-dollar-format/m-p/283841#M57875</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value spnd&amp;amp;k.lbl    1 = "&amp;amp;ls_lbl."
                               2 = "&amp;amp;ms_lbl."
       		               3 = "&amp;amp;hs_lbl."
     			          ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Without the quotes the second value fo &amp;amp;ms_lbl is interpreted as a new value not the display value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 17:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-dollar-format/m-p/283841#M57875</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-12T17:23:32Z</dc:date>
    </item>
  </channel>
</rss>

