<?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: SAS grid connction issues in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803678#M316455</link>
    <description>&lt;P&gt;It looks like you are trying to join data between two different DB2 servers. I know some databases support multi-server queries but I'm not sure about DB2. Ask your DB2 administrator about this. If the DB2 servers are not in the same data centre then performance may be an issue. You may be able to connect to one of the DB2 servers, then reference the other remote DB2 server in queries. You would have to use SQL Passthru to do this though.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 20:09:39 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-03-23T20:09:39Z</dc:date>
    <item>
      <title>SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803517#M316407</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using SAS grid and using the following conditions.&lt;/P&gt;&lt;P&gt;%LET DWPROD='jdbc:db2://pwg1.INFO53.COM:9030/LGRDWP1:useJDBC4ColumnNameAndLabelSemantics=false;';&lt;/P&gt;&lt;P&gt;%LET EDWPROD='jdbc:db2://saflokydcedwc01:50000/EDWPROD:useJDBC4ColumnNameAndLabelSemantics=false;';&lt;/P&gt;&lt;P&gt;LIBNAME edw JDBC URL=&amp;amp;EDWPROD user=&amp;amp;eid_db2conn. password=&amp;amp;pwd_db2conn. DRIVERCLASS=&amp;amp;DB2CLASS;&lt;BR /&gt;LIBNAME dwp1 JDBC URL=&amp;amp;DWPROD user=&amp;amp;eid_db2conn. password=&amp;amp;pwd_db2conn. DRIVERCLASS=&amp;amp;DB2CLASS ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a pass through connection to fetch the data from below tables. The below code is throwing error since the connection is different for edw and dwp1 tables . I would like to know the syntax to create a passthrough for both DWP1 and EDW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(For example only)&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;connect using edw;&lt;BR /&gt;CREATE TABLE Od_6 AS SELECT * FROM CONNECTION TO dwp1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;( select distinct&lt;BR /&gt;hper.hh_key,&lt;BR /&gt;&lt;BR /&gt;from dwp1.dep_acct_mo_dw as depm&lt;BR /&gt;inner join dwp1.dep_acct_dim as depd on depm.i_rec_key = depd.i_rec_key&lt;BR /&gt;inner join dwp1.rltn_dim as rltn on depm.i_rec_key = rltn.i_rec_key&lt;BR /&gt;inner join dwp1.time_dim as time on depm.i_prtn = time.i_prtn_mo_84&lt;BR /&gt;inner join edw.common_account_daily_dim as cadd on depm.i_rec_key = cadd.i_rec_key&lt;BR /&gt;inner join edw.household_periodic as hper on cadd.acct_key = hper.acct_key and time.d_per = hper.date_key&lt;/P&gt;&lt;P&gt;where&lt;BR /&gt;/* time.d_per between &amp;amp;prior6_month. and &amp;amp;current_month.*/&lt;/P&gt;&lt;P&gt;time.d_per between '09/01/2021' and '02/28/2022'&lt;/P&gt;&lt;P&gt;/* time.d_per between %bquote(date(&amp;amp;prior6_mth.)) and %bquote(date(&amp;amp;current_mth.))*/&lt;BR /&gt;and time.x_lst_day_mo = 'Y'&lt;/P&gt;&lt;P&gt;group by hper.hh_key&lt;/P&gt;&lt;P&gt;WITH UR);&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 08:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803517#M316407</guid>
      <dc:creator>ankan1987</dc:creator>
      <dc:date>2022-03-23T08:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803618#M316446</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Any time&lt;/STRONG&gt; you have a question about an error copy the code and all messages from the LOG. On the forum open a text box using the &amp;lt;/&amp;gt; icon and paste all of the copied text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The text box is important to maintain text formatting of the error message diagnostics that SAS often provides.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please don't make us guess what the error is.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803618#M316446</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-23T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803671#M316453</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412272"&gt;@ankan1987&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As you said &lt;SPAN&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;STRONG&gt;the connection is different for edw and dwp1 tables", &lt;/STRONG&gt;you cannot join the tables like that.&lt;BR /&gt;As you want to create sql pass through connections and pull the data , the data needs to be pulled separately and joined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 19:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803671#M316453</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-23T19:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803678#M316455</link>
      <description>&lt;P&gt;It looks like you are trying to join data between two different DB2 servers. I know some databases support multi-server queries but I'm not sure about DB2. Ask your DB2 administrator about this. If the DB2 servers are not in the same data centre then performance may be an issue. You may be able to connect to one of the DB2 servers, then reference the other remote DB2 server in queries. You would have to use SQL Passthru to do this though.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 20:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803678#M316455</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-23T20:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803747#M316485</link>
      <description>Okay, Thanks</description>
      <pubDate>Thu, 24 Mar 2022 07:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803747#M316485</guid>
      <dc:creator>ankan1987</dc:creator>
      <dc:date>2022-03-24T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803748#M316486</link>
      <description>Thanks</description>
      <pubDate>Thu, 24 Mar 2022 07:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803748#M316486</guid>
      <dc:creator>ankan1987</dc:creator>
      <dc:date>2022-03-24T07:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS grid connction issues</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803749#M316487</link>
      <description>Okay , Thanks</description>
      <pubDate>Thu, 24 Mar 2022 07:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-grid-connction-issues/m-p/803749#M316487</guid>
      <dc:creator>ankan1987</dc:creator>
      <dc:date>2022-03-24T07:47:14Z</dc:date>
    </item>
  </channel>
</rss>

