<?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: Change the output name of a table based on a processmonth parameter in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238297#M17157</link>
    <description>What version of EG do you have? I would also considering a quick call to Tech Support or a repost to EG group so that some of the EG users can help.</description>
    <pubDate>Tue, 08 Dec 2015 15:41:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-08T15:41:28Z</dc:date>
    <item>
      <title>Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237954#M17150</link>
      <description>How can I "actively" change the output name of a Table in Sas Enterprise Guide using a &amp;amp;processmonth parameter, using a query builder?&lt;BR /&gt;For example if I'm running data for 2015-12 and i want for the final table to have a standard name prefix such as: "SAS_PM_BEHAVIOR_&amp;amp;processmonth"&lt;BR /&gt;Can this be done with Query Builder? I tried but it disn't work.&lt;BR /&gt;Help please to all you SAS gurus out there!</description>
      <pubDate>Sat, 05 Dec 2015 15:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237954#M17150</guid>
      <dc:creator>DanielLopez</dc:creator>
      <dc:date>2015-12-05T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237957#M17151</link>
      <description>I believe so. There's a place in Query Builder to specify the output table name. There you can place the code you have above.&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Dec 2015 18:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237957#M17151</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-05T18:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237985#M17152</link>
      <description>&lt;P&gt;What &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;proposes works in my EG version (7.11) only if&amp;nbsp;changing the table name via Options/Change Button as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1060i1E0F02610882DAF9/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I&amp;nbsp;just enter the name into the "Output name" field then it get's quoted as name literal and generates code like&lt;/P&gt;
&lt;P&gt;CREATE TABLE WORK.'test&amp;amp;test'n AS&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only after the rename via "options" drop-down I'm getting the table name generated without quoting.&lt;/P&gt;
&lt;P&gt;CREATE TABLE WORK.test&amp;amp;test AS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 22:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/237985#M17152</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-12-05T22:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238094#M17153</link>
      <description>&lt;P&gt;First of all thanks for answering so quickly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried this but I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1071i6AE3D8F6234D5F1E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="SAS_parameter error.JPG" title="SAS_parameter error.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 16:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238094#M17153</guid>
      <dc:creator>DanielLopez</dc:creator>
      <dc:date>2015-12-07T16:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238145#M17154</link>
      <description>&lt;P&gt;It works in my 7.11 EG version.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 19:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238145#M17154</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-12-07T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238156#M17155</link>
      <description>&lt;P&gt;Do I have to set up a special condition under the Prompt Manager option or Tools&amp;gt;Options?&lt;/P&gt;&lt;P&gt;Do you think it might be due to the EG version that I have which is earlier than yours?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;DLP&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238156#M17155</guid>
      <dc:creator>DanielLopez</dc:creator>
      <dc:date>2015-12-07T20:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238240#M17156</link>
      <description>&lt;P&gt;I've run first the following code for my test.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let test=myTest;
data test;
  set sashelp.class;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then I've used the query builder as alredy posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work for you then I must assume it's caused by an earlier version of SAS EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 11:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238240#M17156</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-12-08T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238297#M17157</link>
      <description>What version of EG do you have? I would also considering a quick call to Tech Support or a repost to EG group so that some of the EG users can help.</description>
      <pubDate>Tue, 08 Dec 2015 15:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238297#M17157</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-08T15:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238322#M17158</link>
      <description>&lt;P&gt;I'm using version 5.1. Could that be the reason it does not work?&lt;BR /&gt;I will try calling Tech Support.&amp;nbsp; Any other help on this is deeply appreciated. &amp;nbsp;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 16:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238322#M17158</guid>
      <dc:creator>DanielLopez</dc:creator>
      <dc:date>2015-12-08T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change the output name of a table based on a processmonth parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238323#M17159</link>
      <description>&lt;P&gt;The solution that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick﻿&lt;/a&gt;&amp;nbsp;supplied is creative, but it's a bit of a trick that might be working by accident, and not by design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, there isn't an official method to substitute in a macro value for the output data name in the Query Builder. &amp;nbsp;My suggested workaround would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Create the query to output to a known, static name (ex: &lt;STRONG&gt;work.currentmonth&lt;/STRONG&gt;).&lt;/P&gt;
&lt;P&gt;- Link a subsequent program node that renames/copies that data set to the name you want, using the macro variable that you supply. &amp;nbsp;You could do this with DATA step or PROC COPY or PROC DATASETS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 16:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-the-output-name-of-a-table-based-on-a-processmonth/m-p/238323#M17159</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-08T16:16:20Z</dc:date>
    </item>
  </channel>
</rss>

