<?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: Call SYMPUT using vname in Macro resulting in Apparent symbolic ref error in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544194#M16734</link>
    <description>&lt;P&gt;THANK U SO MUCH &lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; IT WORKED VERY WELL&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 09:50:14 GMT</pubDate>
    <dc:creator>pavan1</dc:creator>
    <dc:date>2019-03-19T09:50:14Z</dc:date>
    <item>
      <title>Call SYMPUT using vname in Macro resulting in Apparent symbolic ref error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544167#M16732</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across an error while implementing call symputx inside the macro. Here is the program that i'm trying to execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro test(data=)&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set &amp;amp;data;&lt;BR /&gt;array x[4] _character_ ;&lt;BR /&gt;suffix=put(_n_,5.);&lt;BR /&gt;do i=1 to 4;&lt;BR /&gt;call symputx(cats(vname(x[i]),suffix),x[i]);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%test(data=ds1);&lt;/P&gt;&lt;P&gt;%test(data=ds2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After executing this i'm getting the error as Apparent Symbolic reference not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly Help me with the solution.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 08:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544167#M16732</guid>
      <dc:creator>pavan1</dc:creator>
      <dc:date>2019-03-19T08:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Call SYMPUT using vname in Macro resulting in Apparent symbolic ref error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544186#M16733</link>
      <description>&lt;P&gt;Make sure your macro variables are created in the global symbol table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call symputx(cats(vname(x[i]),suffix),x[i],'g');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If code gives you problems, always post the whole log of a failing step, using the {i} button.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 09:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544186#M16733</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-19T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call SYMPUT using vname in Macro resulting in Apparent symbolic ref error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544194#M16734</link>
      <description>&lt;P&gt;THANK U SO MUCH &lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; IT WORKED VERY WELL&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 09:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Call-SYMPUT-using-vname-in-Macro-resulting-in-Apparent-symbolic/m-p/544194#M16734</guid>
      <dc:creator>pavan1</dc:creator>
      <dc:date>2019-03-19T09:50:14Z</dc:date>
    </item>
  </channel>
</rss>

