<?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: Can I create a column xyz in a Teradata table pass thru? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876342#M346243</link>
    <description>&lt;P&gt;If the table already exists then you wont be able to do a CREATE TABLE, you will first need to do a DROP TABLE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However your code is creating a table called Acct_User, not Accts, so that is where I would expect to find the new column.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 22:44:21 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-05-17T22:44:21Z</dc:date>
    <item>
      <title>Can I create a column xyz in a Teradata table pass thru?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876340#M346242</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to create a table db1.trans with columns.&lt;BR /&gt;%Let Acct = User;&lt;BR /&gt;&lt;BR /&gt;Proc sql ;&lt;BR /&gt;Connect to teradata( user= myuserid password = mypwd tdpid = zzzz@somebank.com mode = Teradata);&lt;BR /&gt;Execute(&lt;BR /&gt;Create table db1.Acct_&amp;amp;Acct. As (&lt;BR /&gt; Select trandte, &amp;amp;Acct. As AcctType&lt;BR /&gt;From db1. All_Accts) with data&lt;BR /&gt;) by Teradata;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;When I try the above code the I get an error states that user column is not present on db1.Accts table.&lt;BR /&gt;&lt;BR /&gt;Could you please suggest me to add the macro variable &amp;amp;Acct as column in the new table I’m creating.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 17 May 2023 22:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876340#M346242</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2023-05-17T22:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create a column xyz in a Teradata table pass thru?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876342#M346243</link>
      <description>&lt;P&gt;If the table already exists then you wont be able to do a CREATE TABLE, you will first need to do a DROP TABLE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However your code is creating a table called Acct_User, not Accts, so that is where I would expect to find the new column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 22:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876342#M346243</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-17T22:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create a column xyz in a Teradata table pass thru?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876358#M346250</link>
      <description>&lt;P&gt;Try a different variable name.&amp;nbsp; USER is normally a reserved word in SQL code.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 03:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-create-a-column-xyz-in-a-Teradata-table-pass-thru/m-p/876358#M346250</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-18T03:06:47Z</dc:date>
    </item>
  </channel>
</rss>

