<?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 Execute in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474553#M121940</link>
    <description>&lt;P&gt;Just use straight concatenation. No need for CALL EXECUTE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data set1;
length IV_name $10;
input IV_name $;
datalines;
Race
Age
SES
Education
;

data set2;
set set1;
Interaction_name = catt(IV_name, '_BY_Gender');
run;

proc print data=set2 ;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jun 2018 18:27:36 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-06-29T18:27:36Z</dc:date>
    <item>
      <title>Call Execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474526#M121934</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying create a variable that would list names for my interaction variable. Specifically, I have a list of names of my IVs, and I want to create a list of names of my IVs by Gender.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table I have with IVs' names looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IV_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Race&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Age&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SES&lt;/P&gt;&lt;P&gt;Education&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table I want should look like this:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IV_name&amp;nbsp; &amp;nbsp; &amp;nbsp; Interaction_name&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Race_BY_Gender&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Age&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Age_BY_Gender&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SES_BY_Gender&lt;/P&gt;&lt;P&gt;Education&amp;nbsp; Education_BY_Gender&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I tried but it doesn't work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data set2;&lt;BR /&gt;set set1;&lt;BR /&gt;call execute('Interaction_name = '||strip(IV_name)||'_BY_Gender;');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 17:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474526#M121934</guid>
      <dc:creator>Amanda_Lemon</dc:creator>
      <dc:date>2018-06-29T17:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474553#M121940</link>
      <description>&lt;P&gt;Just use straight concatenation. No need for CALL EXECUTE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data set1;
length IV_name $10;
input IV_name $;
datalines;
Race
Age
SES
Education
;

data set2;
set set1;
Interaction_name = catt(IV_name, '_BY_Gender');
run;

proc print data=set2 ;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474553#M121940</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-29T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474889#M122090</link>
      <description>It works! Thank you so much!</description>
      <pubDate>Mon, 02 Jul 2018 13:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute/m-p/474889#M122090</guid>
      <dc:creator>Amanda_Lemon</dc:creator>
      <dc:date>2018-07-02T13:18:35Z</dc:date>
    </item>
  </channel>
</rss>

