<?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 db2 connection in sas pc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140770#M296530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to connect to a database via db2. the following is my code and store the result into MYWORK :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;rsubmit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname mywork 'h:\user\my document\myfile';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%let mydbpasswd=%str({sasenc}12222222222221);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;connect to db2 (dsn="table" user=ismine pass=&amp;amp;mydbpasswd");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table mywork.status as &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from connection to db2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select prod_id, prod_name,status from table1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;disconect from db2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endrsubmit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The log reproduced my code and and finish by "Remote submit to SASGRID complete",&lt;/P&gt;&lt;P&gt;&amp;nbsp; I cannot find &lt;STRONG&gt;mywork&lt;/STRONG&gt; library i created neither a data( dataset Status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&amp;nbsp; Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 20:33:47 GMT</pubDate>
    <dc:creator>Armand</dc:creator>
    <dc:date>2015-01-27T20:33:47Z</dc:date>
    <item>
      <title>db2 connection in sas pc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140770#M296530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to connect to a database via db2. the following is my code and store the result into MYWORK :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;rsubmit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname mywork 'h:\user\my document\myfile';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%let mydbpasswd=%str({sasenc}12222222222221);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;connect to db2 (dsn="table" user=ismine pass=&amp;amp;mydbpasswd");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table mywork.status as &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from connection to db2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select prod_id, prod_name,status from table1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;disconect from db2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endrsubmit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The log reproduced my code and and finish by "Remote submit to SASGRID complete",&lt;/P&gt;&lt;P&gt;&amp;nbsp; I cannot find &lt;STRONG&gt;mywork&lt;/STRONG&gt; library i created neither a data( dataset Status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&amp;nbsp; Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140770#M296530</guid>
      <dc:creator>Armand</dc:creator>
      <dc:date>2015-01-27T20:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: db2 connection in sas pc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140771#M296531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MYWORK library is stored on the SAS server you did a remote submit to not your PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your server appears to use Windows you could try a UNC in Windows Explorer along the lines of: &lt;A href="https://communities.sas.com/"&gt;\\SASServerName\HDrive\user\my&lt;/A&gt; document to get to that folder location. You will need to substitute SASServerName and HDrive with the names that will work on your server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 22:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140771#M296531</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-01-27T22:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: db2 connection in sas pc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140772#M296532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with SASKiwi. It looks like you need to change your libname path to refer to your server file path. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let serverinfo=xxx.xx.com;&lt;/P&gt;&lt;P&gt;libname mywork '/user/mywork' server=serverinfo;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 19:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/db2-connection-in-sas-pc/m-p/140772#M296532</guid>
      <dc:creator>rosietav</dc:creator>
      <dc:date>2015-02-02T19:32:36Z</dc:date>
    </item>
  </channel>
</rss>

