<?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 How to resolve a macro using call symputx? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412800#M100976</link>
    <description>&lt;P&gt;&lt;BR /&gt;data al;&lt;BR /&gt;input a;&lt;BR /&gt;cards;&lt;BR /&gt;11&lt;BR /&gt;12&lt;BR /&gt;13&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;16&lt;BR /&gt;17&lt;BR /&gt;18&lt;BR /&gt;19&lt;BR /&gt;20&lt;BR /&gt;21&lt;BR /&gt;22&lt;BR /&gt;23&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set al;&lt;BR /&gt;call symputx("n"||put(_N_,1.),a);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) can someone try it by above code to resolve macro variable and errors?&lt;/P&gt;&lt;P&gt;2) I think it error becoz of in function length.&lt;/P&gt;&lt;P&gt;3) Please try it only in using above code and got it using SQL...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ERROR: Symbolic variable name N* must contain only letters, digits, and underscores.&lt;BR /&gt;NOTE: Argument 1 to function SYMPUTX('n*',20) at line 310 column 6 is invalid.&lt;BR /&gt;a=20 _ERROR_=1 _N_=10&lt;BR /&gt;ERROR: Symbolic variable name N* must contain only letters, digits, and underscores.&lt;BR /&gt;NOTE: Argument 1 to function SYMPUTX('n*',21) at line 310 column 6 is invalid.&lt;BR /&gt;a=21 _ERROR_=1 _N_=11&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 06:16:29 GMT</pubDate>
    <dc:creator>rajeshalwayswel</dc:creator>
    <dc:date>2017-11-13T06:16:29Z</dc:date>
    <item>
      <title>How to resolve a macro using call symputx?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412800#M100976</link>
      <description>&lt;P&gt;&lt;BR /&gt;data al;&lt;BR /&gt;input a;&lt;BR /&gt;cards;&lt;BR /&gt;11&lt;BR /&gt;12&lt;BR /&gt;13&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;16&lt;BR /&gt;17&lt;BR /&gt;18&lt;BR /&gt;19&lt;BR /&gt;20&lt;BR /&gt;21&lt;BR /&gt;22&lt;BR /&gt;23&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set al;&lt;BR /&gt;call symputx("n"||put(_N_,1.),a);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) can someone try it by above code to resolve macro variable and errors?&lt;/P&gt;&lt;P&gt;2) I think it error becoz of in function length.&lt;/P&gt;&lt;P&gt;3) Please try it only in using above code and got it using SQL...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ERROR: Symbolic variable name N* must contain only letters, digits, and underscores.&lt;BR /&gt;NOTE: Argument 1 to function SYMPUTX('n*',20) at line 310 column 6 is invalid.&lt;BR /&gt;a=20 _ERROR_=1 _N_=10&lt;BR /&gt;ERROR: Symbolic variable name N* must contain only letters, digits, and underscores.&lt;BR /&gt;NOTE: Argument 1 to function SYMPUTX('n*',21) at line 310 column 6 is invalid.&lt;BR /&gt;a=21 _ERROR_=1 _N_=11&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 06:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412800#M100976</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2017-11-13T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro using call symputx?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412801#M100977</link>
      <description>&lt;P&gt;Format 1. cannot accomodate numbers &amp;gt; 9. Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set al;
call symputx(cats("n", _N_), a);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Nov 2017 06:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412801#M100977</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-13T06:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro using call symputx?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412806#M100978</link>
      <description>&lt;P&gt;Aside from the format error, it is usually not necessary to keep numbered lists of macro variables, as code can be created right off the dataset with call execute().&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 08:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-using-call-symputx/m-p/412806#M100978</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-13T08:10:37Z</dc:date>
    </item>
  </channel>
</rss>

