<?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 %let and numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70192#M15195</link>
    <description>The following %let statement goes through iterations.How to convert the macro variables to numeric?&lt;BR /&gt;
&lt;BR /&gt;
%LET VGROUP&amp;amp;I = "&amp;amp;&amp;amp;GROUP&amp;amp;I";</description>
    <pubDate>Tue, 08 Feb 2011 17:36:19 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2011-02-08T17:36:19Z</dc:date>
    <item>
      <title>%let and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70192#M15195</link>
      <description>The following %let statement goes through iterations.How to convert the macro variables to numeric?&lt;BR /&gt;
&lt;BR /&gt;
%LET VGROUP&amp;amp;I = "&amp;amp;&amp;amp;GROUP&amp;amp;I";</description>
      <pubDate>Tue, 08 Feb 2011 17:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70192#M15195</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2011-02-08T17:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: %let and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70193#M15196</link>
      <description>Macro variables are always stored as characters.&lt;BR /&gt;
&lt;BR /&gt;
If you want it resolved to numeric you can apply a format where you would resolve the variable, using sysfunc and inputn functions.&lt;BR /&gt;
&lt;BR /&gt;
See&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#z3514sysfunc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#z3514sysfunc.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Tue, 08 Feb 2011 17:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70193#M15196</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-02-08T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: %let and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70194#M15197</link>
      <description>Hi:&lt;BR /&gt;
  And, as an additional comment, it is hardly ever a good idea to "prequote" macro variables in a %LET statement. In the code snippet that you showed, the macro variable would contain the resolved value of &amp;amp;&amp;amp;GROUP&amp;amp;I, including the quotes. This may or may not be appropriate and could cause quoting problems depending on your usage of &amp;amp;VGROUP1, &amp;amp;VGROUP2, etc.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 08 Feb 2011 18:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-numeric/m-p/70194#M15197</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-08T18:33:35Z</dc:date>
    </item>
  </channel>
</rss>

