<?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 How to create dynamic column names in SAS EG Query Builder using a prompt value? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620786#M35455</link>
    <description>&lt;P&gt;Using a prompt, which takes a single integer numeric value, eg 4. How can I use this prompt to create a dynamic column name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the prompt value to bring through certain columns, called something like "Names".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to name the columns something like "Names_Year_X".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where X is the prompt value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried referring to the prompt value by using methods such as "Names_Year_&amp;amp;Prompt" and "Names_Year_&amp;amp;&amp;amp;Prompt&amp;amp;Prompt".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, none of the above methods work, nor do a number of others I've tried. Does anyone have any advice for house this might work? Preferably using the Query Builder, but if not using a program node for some code is a secondary back up option.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 12:12:28 GMT</pubDate>
    <dc:creator>sass_numero_uno</dc:creator>
    <dc:date>2020-01-29T12:12:28Z</dc:date>
    <item>
      <title>How to create dynamic column names in SAS EG Query Builder using a prompt value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620786#M35455</link>
      <description>&lt;P&gt;Using a prompt, which takes a single integer numeric value, eg 4. How can I use this prompt to create a dynamic column name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the prompt value to bring through certain columns, called something like "Names".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to name the columns something like "Names_Year_X".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where X is the prompt value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried referring to the prompt value by using methods such as "Names_Year_&amp;amp;Prompt" and "Names_Year_&amp;amp;&amp;amp;Prompt&amp;amp;Prompt".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, none of the above methods work, nor do a number of others I've tried. Does anyone have any advice for house this might work? Preferably using the Query Builder, but if not using a program node for some code is a secondary back up option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620786#M35455</guid>
      <dc:creator>sass_numero_uno</dc:creator>
      <dc:date>2020-01-29T12:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic column names in SAS EG Query Builder using a prompt value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620804#M35456</link>
      <description>Have you tried adding a computed column with the name Names_Year_&amp;amp;Prompt?</description>
      <pubDate>Wed, 29 Jan 2020 13:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620804#M35456</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-01-29T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic column names in SAS EG Query Builder using a prompt value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620884#M35458</link>
      <description>&lt;P&gt;Please post the full code you used to create the dynamically named column.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620884#M35458</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-29T16:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic column names in SAS EG Query Builder using a prompt value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620897#M35459</link>
      <description>Yes. I have attempted this, and it just appears as what a literally type, so in this instance, "Names_Year_&amp;amp;Prompt"</description>
      <pubDate>Wed, 29 Jan 2020 16:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620897#M35459</guid>
      <dc:creator>sass_numero_uno</dc:creator>
      <dc:date>2020-01-29T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic column names in SAS EG Query Builder using a prompt value?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620908#M35460</link>
      <description>Take the code from your query builder and put it into a new program, then just change the single quotes to double quotes.</description>
      <pubDate>Wed, 29 Jan 2020 17:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-create-dynamic-column-names-in-SAS-EG-Query-Builder-using/m-p/620908#M35460</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-01-29T17:11:55Z</dc:date>
    </item>
  </channel>
</rss>

