<?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 clean the log for macro variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547067#M8335</link>
    <description>&lt;P&gt;Wondering if some can help, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a decoded variable for any list of variables with the code below.&lt;/P&gt;&lt;P&gt;The code below is creating the variables but also throwing some warnings&amp;nbsp;in the log,&amp;nbsp;would it be possible to remove these warnings.&lt;/P&gt;&lt;P&gt;For example, var1=agegrp and var1dc should be agegrpdc.&lt;/P&gt;&lt;P&gt;I have to keep %let statvar&amp;nbsp;statement, as it will be one of the parameters&amp;nbsp;for a macro variable where i add more variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro dothis;&lt;/P&gt;&lt;P&gt;%let statvr=agegrp gender ;&lt;/P&gt;&lt;P&gt;%do i = 1 %to %sysfunc(countw(&amp;amp;statvr));&lt;/P&gt;&lt;P&gt;%let seq&amp;amp;i. = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%let a=dc;&lt;/P&gt;&lt;P&gt;%let s=%str();&lt;/P&gt;&lt;P&gt;%let seqdc&amp;amp;i.=%sysfunc(catx(&amp;amp;s,&amp;amp;seq&amp;amp;i,%nrstr(%superq(a))));&lt;/P&gt;&lt;P&gt;%let var1 = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%dothis;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 00:43:44 GMT</pubDate>
    <dc:creator>Sami1234</dc:creator>
    <dc:date>2019-03-29T00:43:44Z</dc:date>
    <item>
      <title>How to clean the log for macro variables?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547064#M8330</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if some can help, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a decoded variable for any list of variables with the code below.&lt;/P&gt;&lt;P&gt;The code below is creating the variables but also throwing some warnings&amp;nbsp;in the log,&amp;nbsp;would it be possible to remove these warnings.&lt;/P&gt;&lt;P&gt;For example, var1=agegrp and var1dc should be agegrpdc.&lt;/P&gt;&lt;P&gt;I have to keep %let statvar&amp;nbsp;statement, as it will be one of the parameters&amp;nbsp;for a macro variable where i add more variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro dothis;&lt;/P&gt;&lt;P&gt;%let statvr=agegrp gender ;&lt;/P&gt;&lt;P&gt;%do i = 1 %to %sysfunc(countw(&amp;amp;statvr));&lt;/P&gt;&lt;P&gt;%let seq&amp;amp;i. = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%let a=dc;&lt;/P&gt;&lt;P&gt;%let s=%str();&lt;/P&gt;&lt;P&gt;%let seqdc&amp;amp;i.=%sysfunc(catx(&amp;amp;s,&amp;amp;seq&amp;amp;i,%nrstr(%superq(a))));&lt;/P&gt;&lt;P&gt;%let var1 = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%dothis;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 00:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547064#M8330</guid>
      <dc:creator>Sami1234</dc:creator>
      <dc:date>2019-03-29T00:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean the log for macro variables?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547065#M8331</link>
      <description>&lt;P&gt;a quick look tells me&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let seqdc&amp;amp;i.=%sysfunc(catx(&amp;amp;s,&amp;amp;seq&amp;amp;i,%nrstr(%superq(a))));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;amp;seq&amp;amp;i&amp;nbsp;&lt;/STRONG&gt; is incorrect and you need to refer with double &lt;STRONG&gt;&amp;amp;&amp;amp;seq&amp;amp;i&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plus you don't need &lt;STRONG&gt;concat functions&lt;/STRONG&gt; in macro language for the most part&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 00:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547065#M8331</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-29T00:43:35Z</dc:date>
    </item>
    <item>
      <title>How to clean the log for macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547067#M8335</link>
      <description>&lt;P&gt;Wondering if some can help, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a decoded variable for any list of variables with the code below.&lt;/P&gt;&lt;P&gt;The code below is creating the variables but also throwing some warnings&amp;nbsp;in the log,&amp;nbsp;would it be possible to remove these warnings.&lt;/P&gt;&lt;P&gt;For example, var1=agegrp and var1dc should be agegrpdc.&lt;/P&gt;&lt;P&gt;I have to keep %let statvar&amp;nbsp;statement, as it will be one of the parameters&amp;nbsp;for a macro variable where i add more variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro dothis;&lt;/P&gt;&lt;P&gt;%let statvr=agegrp gender ;&lt;/P&gt;&lt;P&gt;%do i = 1 %to %sysfunc(countw(&amp;amp;statvr));&lt;/P&gt;&lt;P&gt;%let seq&amp;amp;i. = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%let a=dc;&lt;/P&gt;&lt;P&gt;%let s=%str();&lt;/P&gt;&lt;P&gt;%let seqdc&amp;amp;i.=%sysfunc(catx(&amp;amp;s,&amp;amp;seq&amp;amp;i,%nrstr(%superq(a))));&lt;/P&gt;&lt;P&gt;%let var1 = %scan(&amp;amp;statvr,&amp;amp;i,%str( ));&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%dothis;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SEQ not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 00:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547067#M8335</guid>
      <dc:creator>Sami1234</dc:creator>
      <dc:date>2019-03-29T00:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean the log for macro variables?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547070#M8333</link>
      <description>&lt;P&gt;Thanks allot, its working fine now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 00:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-the-log-for-macro-variables/m-p/547070#M8333</guid>
      <dc:creator>Sami1234</dc:creator>
      <dc:date>2019-03-29T00:48:08Z</dc:date>
    </item>
  </channel>
</rss>

