<?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 Using a Parameter as a Table Name in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160855#M2984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgive me, as I'm new to SAS DI Studio, but I'm looking at a series of jobs that basically contain one 'node' (if that's the right term) which is 'Create Table and Metadata'. This goes out to a SAS DDL program and uses the format contained within to create a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, instead of having one of these little 'one node' jobs for each table, I'd like to just have the table name be entered via a prompted parameter. I see that 'Create Table and Metadata' has a parameter tab, and when I create the parameter there, I'm unsure how to get the user to receive the prompt and for the user's input to be passed along as the table name. Do I need to modify the code in the Code tab? if my parameter name is '_parameter' would this be input in the line as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'%let tableName = &amp;amp;_parameter'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 19:40:51 GMT</pubDate>
    <dc:creator>jwhite</dc:creator>
    <dc:date>2014-05-15T19:40:51Z</dc:date>
    <item>
      <title>Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160855#M2984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgive me, as I'm new to SAS DI Studio, but I'm looking at a series of jobs that basically contain one 'node' (if that's the right term) which is 'Create Table and Metadata'. This goes out to a SAS DDL program and uses the format contained within to create a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, instead of having one of these little 'one node' jobs for each table, I'd like to just have the table name be entered via a prompted parameter. I see that 'Create Table and Metadata' has a parameter tab, and when I create the parameter there, I'm unsure how to get the user to receive the prompt and for the user's input to be passed along as the table name. Do I need to modify the code in the Code tab? if my parameter name is '_parameter' would this be input in the line as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'%let tableName = &amp;amp;_parameter'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 19:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160855#M2984</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-05-15T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160856#M2985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I'm not sure what you are actually looking at.&lt;/P&gt;&lt;P&gt;If you open a job, and click the node, what does say in the "Node Type" field in the Basic Properties window (default placed at your bottom left)?&lt;/P&gt;&lt;P&gt;EN each of the SAS standard transformations ("Nodes") for table update&amp;nbsp; there are SAS DDL (or a data step with some attrib statements). Is this what you mean? Or do you have some custom made code?&lt;/P&gt;&lt;P&gt;From another angle, what is the requirement? Since most DI job are target table aware (they will be created if they doesn't exist during execution), this part is more or less for free.&lt;/P&gt;&lt;P&gt;But if you ave a DDL and no meta data registration...who made the DDL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 20:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160856#M2985</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-05-15T20:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160857#M2986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using DI Studio 4.4 and the 'Node Type' is 'Create Table and Metadata'. In the Transformations tab, under the 'Data' subset it's the option between 'Compare Tables' and 'Data Transfer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The odd thing is, that even in the help documentation this node isn't listed along with the other Data Transformations. Is it a new type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I've got the parameters now working in the node, but a prompt doesn't come up for the user when I execute the job. The only way it seems to work is if I enter the values in as defaults for the parameters, then use the parameters in the options tab. Again, I'm hoping for a user prompt to pop-up.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6332" alt="CT&amp;amp;M.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6332_CT&amp;amp;M.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;To answer your other question...(Again I'm new to SAS DI Studio), my team makes the DDL via a SAS program, then uses this node to upload the metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Maybe I should start a new discussion about Prompts, since the table name as parameter has been resolved. Which folder would the new question be most appropriate in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160857#M2986</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-05-16T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160858#M2987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jwhite,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to the Data Management Community! You can start another discussion on the prompts topic the same way you submitted your question on table names. Can you mark &lt;A _jive_internal="true" href="https://communities.sas.com/people/LinusH"&gt;LinusH's&lt;/A&gt; answer correct on this one (if it solved your initial challenge)? That way other members will know what worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160858#M2987</guid>
      <dc:creator>AnnaBrown</dc:creator>
      <dc:date>2014-05-16T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160859#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to use the parameters within the option tab by prefacing the parameter name with '&amp;amp;' and ending it with '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &amp;amp;parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 15:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/160859#M2988</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2014-05-16T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Parameter as a Table Name</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/390048#M11784</link>
      <description>&lt;P&gt;Hi jwhite,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that a custom component designed by your team? I don't see that component in my DI Studio. Please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 22:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-a-Parameter-as-a-Table-Name/m-p/390048#M11784</guid>
      <dc:creator>ananthtony</dc:creator>
      <dc:date>2017-08-22T22:07:24Z</dc:date>
    </item>
  </channel>
</rss>

