{"id":3439,"date":"2021-04-26T22:46:52","date_gmt":"2021-04-26T20:46:52","guid":{"rendered":"http:\/\/van-maanen.com\/?p=3439"},"modified":"2021-04-26T22:46:52","modified_gmt":"2021-04-26T20:46:52","slug":"sas-en-teradata","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=3439","title":{"rendered":"SAS en Teradata"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Currently, I work with SAS and teradata. I notice, we have two possibilities to connect SAS to teradata. One possibility is to create a remote library. The definition is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">libname Td_direc teradata\ntdpid =\"127.0.0.1\"\nuser=\"tduser\"\npassword=\"tduser\"\ndatabase=\"financial\";\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Another possibility is to create an explicit connection:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">proc sql;<br>connect to teradata as td(tdpid=\"127.0.0.1\"<br>user=\"tduser\"<br>password=\"tduser\"<br>database=\"financial\");<br>create table work.dataX as<br>select *<br>from connection to td<br>(select * from dataX);<br>quit;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This explicit connection can also be used to create a table on teradata:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">proc sql;<br>connect to teradata as td(tdpid=\"127.0.0.1\"<br>user=\"tduser\"<br>password=\"tduser\"<br>database=\"financial\");<br>execute<br>(create table dataY(x integer, y integer))<br>by td;<br>execute(commit work) by td;<br>quit;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Currently, I work with SAS and teradata. I notice, we have two possibilities to connect SAS to teradata. One possibility is to create a remote library. The definition is: libname Td_direc teradata tdpid =&#8221;127.0.0.1&#8243; user=&#8221;tduser&#8221; password=&#8221;tduser&#8221; database=&#8221;financial&#8221;; Another possibility is to create an explicit connection: proc sql;connect to teradata as td(tdpid=&#8221;127.0.0.1&#8243;user=&#8221;tduser&#8221;password=&#8221;tduser&#8221;database=&#8221;financial&#8221;);create table work.dataX asselect *from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3439","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3439"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3439\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}