<?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: inserting macro variable in the middle of specific word in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510691#M137446</link>
    <description>&lt;P&gt;See Maxim 48.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 07:21:15 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-11-06T07:21:15Z</dc:date>
    <item>
      <title>inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510687#M137443</link>
      <description>&lt;P&gt;hello. i want to insert macro variable in the middle of specific word.&lt;/P&gt;&lt;P&gt;example is as follows...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro test(name=);&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table.&amp;amp;namea as&lt;BR /&gt;select *&lt;BR /&gt;from mywork.sample&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;P&gt;%test(name=sample);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using macro, i want to make this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table.samplea as&lt;BR /&gt;select *&lt;BR /&gt;from mywork.sample&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, as you might expect, error statement appears in log screen. &amp;amp;namea wasn't converted into 'samplea'&lt;/P&gt;&lt;P&gt;instead, SAS recoganize '&amp;amp;namea' as one complete variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to make SAS recognize '&amp;amp;namea' as &amp;amp;name+a, conclusively, 'simplea'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate your help. thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510687#M137443</guid>
      <dc:creator>km0927</dc:creator>
      <dc:date>2018-11-06T06:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510688#M137444</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(name=);

proc sql;
create table.&amp;amp;name.a as
select *
from mywork.sample
;quit;

%mend test;

%test(name=sample);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510688#M137444</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-06T06:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510691#M137446</link>
      <description>&lt;P&gt;See Maxim 48.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 07:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510691#M137446</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-06T07:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510754#M137454</link>
      <description>&lt;P&gt;The problem seems to be that there is a syntax error in the code you are submitting (and in the code that you are trying to generate):&lt;/P&gt;&lt;P&gt;You submitted "create table.&amp;amp;namea", I think it should be "create table &amp;amp;namea", with a space instead of the dot.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510754#M137454</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-11-06T14:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510770#M137464</link>
      <description>&lt;PRE&gt;%macro test(name=);

proc sql;
   create  table   &amp;amp;name.a   as
   select *
   from mywork.sample
   ;
quit;

%mend test;

%test(name=sample);&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/510770#M137464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-06T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: inserting macro variable in the middle of specific word</title>
      <link>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/515952#M139304</link>
      <description>&lt;P&gt;thanks all. due to my submitting of master's graduation paper, i couldn't care less about this project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm sorry for not accepting answer. due to my carelessness, maybe you all have wondered why answers were not accepted, though it was right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for all your help.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 11:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/inserting-macro-variable-in-the-middle-of-specific-word/m-p/515952#M139304</guid>
      <dc:creator>km0927</dc:creator>
      <dc:date>2018-11-26T11:43:59Z</dc:date>
    </item>
  </channel>
</rss>

