<?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: create teradata schema from sas dataseet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410231#M100251</link>
    <description>Thanks that's what I thought ... and thanks I know how to do all this in sas.</description>
    <pubDate>Fri, 03 Nov 2017 14:11:59 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2017-11-03T14:11:59Z</dc:date>
    <item>
      <title>create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410206#M100247</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple way to produce the required teradata schema given a sas dataset and its (in)formats or do I have to do this manually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;$CHAR82&amp;nbsp;may require&amp;nbsp;CHAR(82) CHARACTER SET LATIN NOT CASESPECIFIC etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410206#M100247</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-11-03T13:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410221#M100249</link>
      <description>&lt;P&gt;It is not great idea to make a char(82) in any DBMS. Datatypes you can control in dataset option dbtype. Below is an example picked up from &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371576.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371576.htm&lt;/A&gt; and it shows how you create datatypes you want. SAS formats are not understood by any DBMS and will not&amp;nbsp;be written to DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;A name="a002516492" target="_blank"&gt;&lt;/A&gt;data mydblib.newdept(dbtype=(deptno='byteint' city='varchar(25)'));
set dept;
run;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But if you want to create Teradata schema, best way is to use explicit pass through as show below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;   &lt;BR /&gt;connect to teradata (server=myserver user=myuserid pw=mypass); &lt;BR /&gt;   execute(create table teraschema.employee &lt;BR /&gt;    (cust_id decimal(10, 0),  &lt;BR /&gt;    cust_fname varchar(40),&lt;BR /&gt; cust_lname varchar(50))  &lt;BR /&gt; primary index(cust_id)) by teradata;   &lt;BR /&gt;  execute(commit) by teradata; &lt;BR /&gt;   disconnect from teradata; &lt;BR /&gt; quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410221#M100249</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-11-03T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410231#M100251</link>
      <description>Thanks that's what I thought ... and thanks I know how to do all this in sas.</description>
      <pubDate>Fri, 03 Nov 2017 14:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410231#M100251</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-11-03T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410235#M100253</link>
      <description>&lt;P&gt;Btw I am getting:&lt;BR /&gt;&lt;BR /&gt;ERROR 22-7: Invalid option name DBTYPE.&lt;BR /&gt;&lt;BR /&gt;when I try something along those lines:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Work.Test(dbtype=(x='int' y='varchar(5)'));
set Work.Bla;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410235#M100253</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-11-03T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410242#M100255</link>
      <description>&lt;P&gt;work.test is not right that should be Teradata libname&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname&amp;nbsp;yes teradata user='user' pass='passd' tdpid=prodserver&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token procnames"&gt;&lt;STRONG&gt;&lt;FONT color="#000080"&gt;data &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;yes&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;Test&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;dbtype&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;=&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;x&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;=&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;&lt;FONT color="#800000"&gt;'int'&lt;/FONT&gt;&lt;/SPAN&gt; y&lt;SPAN class="token operator"&gt;&lt;FONT color="#a67f59"&gt;=&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;&lt;FONT color="#800000"&gt;'varchar(5)'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#999999"&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;&lt;FONT color="#0000ff"&gt;set&lt;/FONT&gt;&lt;/SPAN&gt; Work&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;Bla&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#999999"&gt;;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token procnames"&gt;&lt;STRONG&gt;&lt;FONT color="#000080"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410242#M100255</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-11-03T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: create teradata schema from sas dataseet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410248#M100257</link>
      <description>I see - sorry. Thanks!</description>
      <pubDate>Fri, 03 Nov 2017 14:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-teradata-schema-from-sas-dataseet/m-p/410248#M100257</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-11-03T14:37:08Z</dc:date>
    </item>
  </channel>
</rss>

