<?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: How to: Connect to WRDS combining rights with two accounts in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804958#M317044</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; only download the final results to local.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to subset data A using data B, and data B is not accessible to data A, and you can't upload data B to location A, then you can't do that.&lt;/P&gt;
&lt;P&gt;How could you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So either you find a way to get data B where data A is (or at least the download criteria), or you must do the join and selection after downloading the full sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, the way to download a subset is to put the selection criteria in a WHERE clause.&lt;/P&gt;
&lt;P&gt;In other words: You don't bring data B to location A as data, you bring data B to location A as code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The downside of course is that if you have a million values that you want to select, that's rather long piece of code.&amp;nbsp; &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, 30 Mar 2022 06:21:57 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2022-03-30T06:21:57Z</dc:date>
    <item>
      <title>How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804461#M316794</link>
      <description>I have 2 WRDS accounts with different rights. Can I connect to wrds with both account rights to access the database?</description>
      <pubDate>Mon, 28 Mar 2022 06:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804461#M316794</guid>
      <dc:creator>demi6od</dc:creator>
      <dc:date>2022-03-28T06:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804645#M316886</link>
      <description>&lt;P&gt;Can you run 2 libname statements?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 01:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804645#M316886</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-29T01:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804652#M316890</link>
      <description>&lt;P&gt;I think the hard part is that in sas code, I can't make 2 connections simultaneously&amp;nbsp;(with different account) to WRDS. At any time I can only access one database, and have no rights to access another. I think when I submit my SQL statements to WRDS sever, I will only execute it within one account's workspace.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 02:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804652#M316890</guid>
      <dc:creator>demi6od</dc:creator>
      <dc:date>2022-03-29T02:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804654#M316892</link>
      <description>&lt;P&gt;How do you connect to WRDS now? We can't really help unless you provide these details.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 03:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804654#M316892</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-29T03:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804657#M316895</link>
      <description>&lt;P&gt;I attach the sas file. It merge 3 different database compustat, crsp and IBES to calculate what I need.&lt;/P&gt;&lt;P&gt;One of my account have compustat and crsp rights, another account have IBES rights.&lt;/P&gt;&lt;P&gt;I use signon to connect WRDS, but any accout can't acess all 3 databases simultaneously.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 03:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804657#M316895</guid>
      <dc:creator>demi6od</dc:creator>
      <dc:date>2022-03-29T03:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804660#M316898</link>
      <description>&lt;P&gt;So what's the problem then? You can easily SIGNON to each of the three databases, download what you need, then combine results on local SAS if required.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 03:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804660#M316898</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-29T03:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804663#M316901</link>
      <description>&lt;P&gt;Thank you for your answer! It's what I'm trying, while I need to download a bit more data to local. For this question, I also try to find a way to do joint conditional selection from different database, and then only download the final results to local.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 04:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804663#M316901</guid>
      <dc:creator>demi6od</dc:creator>
      <dc:date>2022-03-29T04:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804697#M316920</link>
      <description>&lt;P&gt;You can define two macro variables to use as server names in the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p0brzkmxqg483hn163ek01h4mf6e.htm" target="_blank" rel="noopener"&gt;SIGNON Statement&lt;/A&gt;. Have both of them point to the WRDS server.&lt;/P&gt;
&lt;P&gt;Issue SIGNON statements for both, using the different credentials, then issue RLS LIBNAMEs as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 09:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804697#M316920</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-29T09:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804703#M316923</link>
      <description>&lt;P&gt;I tried 2 ways as following but both failed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let wrds=wrds.wharton.upenn.edu 4016;options comamid=TCP remote=WRDS;&lt;BR /&gt;signon wrds macvar=rhost1;username=aaa password=xxx;&lt;BR /&gt;signon wrds macvar=rhost2;username=bbb password=xxx;&lt;/P&gt;&lt;P&gt;NOTE: A link to WRDS has been previously established. SIGNON is not necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let wrds1=wrds.wharton.upenn.edu 4016;options comamid=TCP remote=WRDS;&lt;/P&gt;&lt;P&gt;signon username=aaa password=xxx;&lt;/P&gt;&lt;P&gt;%let wrds2=wrds.wharton.upenn.edu 4016;options comamid=TCP remote=WRDS;&lt;/P&gt;&lt;P&gt;signon username=bbb password=xxx;&lt;/P&gt;&lt;P&gt;ERROR: A communication subsystem partner link setup request failure has occurred.&lt;BR /&gt;ERROR: Cannot locate TCP host 'WRDS'.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 10:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804703#M316923</guid>
      <dc:creator>demi6od</dc:creator>
      <dc:date>2022-03-29T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804715#M316930</link>
      <description>&lt;P&gt;You need to use the separate definitions in the SIGNON.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;signon wrds1 user=user1 password=pw1;
signon wrds2 user=user2 password=pw2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you still have problems, post your&amp;nbsp;&lt;EM&gt;complete&lt;/EM&gt; log by copy/pasting into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 11:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804715#M316930</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-29T11:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Connect to WRDS combining rights with two accounts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804958#M317044</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; only download the final results to local.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to subset data A using data B, and data B is not accessible to data A, and you can't upload data B to location A, then you can't do that.&lt;/P&gt;
&lt;P&gt;How could you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So either you find a way to get data B where data A is (or at least the download criteria), or you must do the join and selection after downloading the full sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, the way to download a subset is to put the selection criteria in a WHERE clause.&lt;/P&gt;
&lt;P&gt;In other words: You don't bring data B to location A as data, you bring data B to location A as code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The downside of course is that if you have a million values that you want to select, that's rather long piece of code.&amp;nbsp; &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, 30 Mar 2022 06:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Connect-to-WRDS-combining-rights-with-two-accounts/m-p/804958#M317044</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-30T06:21:57Z</dc:date>
    </item>
  </channel>
</rss>

