<?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: sql: create table with new column-attributes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834225#M329830</link>
    <description>&lt;P&gt;Great, Thx!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 07:52:21 GMT</pubDate>
    <dc:creator>Konkordanz</dc:creator>
    <dc:date>2022-09-20T07:52:21Z</dc:date>
    <item>
      <title>sql: create table with new column-attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834222#M329827</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with SQL I want to create a new table from another and want to add a emtpy character-column. That works. But: The length is only 1 and only the first letter appears. &lt;STRONG&gt;Question&lt;/STRONG&gt;: Does the sql-step has the option to define the length? For example like that (doesnt work):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test as select 
&lt;STRONG&gt;"" char(20) as GKL2&lt;/STRONG&gt;,sum(bev) as bev &lt;BR /&gt;from XY;&lt;BR /&gt;quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Thank you!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834222#M329827</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-09-20T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: sql: create table with new column-attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834224#M329829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388612"&gt;@Konkordanz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace &lt;FONT face="courier new,courier"&gt;char(20)&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;length=20&lt;/FONT&gt; and it will work. You can also put the length specification after the variable name and either way&amp;nbsp;&lt;FONT face="courier new,courier"&gt;length 20&lt;/FONT&gt; works as well.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834224#M329829</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-20T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: sql: create table with new column-attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834225#M329830</link>
      <description>&lt;P&gt;Great, Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-create-table-with-new-column-attributes/m-p/834225#M329830</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-09-20T07:52:21Z</dc:date>
    </item>
  </channel>
</rss>

