<?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 Reading Parameter Midword in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Parameter-Midword/m-p/849123#M41855</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I am trying to plug in the parameter midword and was wondering if anyone had any advice. I will attach the code below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%Let Num = 2

Proc SQL; 
Create Table Test as 
Select Name&amp;amp;NumFull,
Year&amp;amp;NumLast
From xx;
Quit;&lt;/PRE&gt;
&lt;P&gt;Ideally the columns that would be selected would be Name2Full and Year2Last.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently this is not working and it just trying to pull columns with the same exact names typed. I have tried " " and ' ' around them and it does not work. Any advice would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 15:36:23 GMT</pubDate>
    <dc:creator>ccaudillo100</dc:creator>
    <dc:date>2022-12-12T15:36:23Z</dc:date>
    <item>
      <title>Reading Parameter Midword</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Parameter-Midword/m-p/849123#M41855</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I am trying to plug in the parameter midword and was wondering if anyone had any advice. I will attach the code below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%Let Num = 2

Proc SQL; 
Create Table Test as 
Select Name&amp;amp;NumFull,
Year&amp;amp;NumLast
From xx;
Quit;&lt;/PRE&gt;
&lt;P&gt;Ideally the columns that would be selected would be Name2Full and Year2Last.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently this is not working and it just trying to pull columns with the same exact names typed. I have tried " " and ' ' around them and it does not work. Any advice would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Parameter-Midword/m-p/849123#M41855</guid>
      <dc:creator>ccaudillo100</dc:creator>
      <dc:date>2022-12-12T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Parameter Midword</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Parameter-Midword/m-p/849124#M41856</link>
      <description>&lt;P&gt;Try this instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a classic example of when to use the dot (.) de delimit macro variables. In your code, SAS looks for the macro variables &amp;amp;NumFull and &amp;amp;NumLast in the symbol tables. You want SAS to look for the macro variable &amp;amp;Num &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Let Num = 2

Proc SQL; 
Create Table Test as 
Select Name&amp;amp;Num.Full,
Year&amp;amp;Num.Last
From xx;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-Parameter-Midword/m-p/849124#M41856</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-12-12T15:40:50Z</dc:date>
    </item>
  </channel>
</rss>

