BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MarinaMag
Fluorite | Level 6

Hello,

 

When I use the following commands to work remotely on wrds server can I also use data that are not included in wrds for my procedures?

%let wrds = wrds.wharton.upenn.edu 4016;

options comamid=TCP remote=WRDS;

signon username=_prompt_;

rsubmit...

Lets say for example to merge a dataset that I have obtained with data from crsp and use them together in the analysis that follows.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
s_lassen
Meteorite | Level 14

There are several possibilities. If your remote data are not too large, you can allocate the remote library as a server library on your own PC, and run your joint analysis locally:

rsubmit;
  libname xx <definition>;
endrsubmit;

libname xx server=wrds slibref=xx;

data want;
  merge xx.inputdata mydata.crsp;
  

  

Alternatively, you can download the data from the server and run locally:

rsubmit;
  proc download data=xx.inputdata out=Work.inputdata;run;
endrsubmit;

data want;
  merge inputdata mydata.crsp;

Or you can upload your data to the remote server and run the analysis there:

rsubmit;
  proc upload data=mydata.crsp out=Work.crsp;run;
  data want;
    merge xx.inputdata crsp;
  /* more SAS code here */
endrsubmit;

View solution in original post

1 REPLY 1
s_lassen
Meteorite | Level 14

There are several possibilities. If your remote data are not too large, you can allocate the remote library as a server library on your own PC, and run your joint analysis locally:

rsubmit;
  libname xx <definition>;
endrsubmit;

libname xx server=wrds slibref=xx;

data want;
  merge xx.inputdata mydata.crsp;
  

  

Alternatively, you can download the data from the server and run locally:

rsubmit;
  proc download data=xx.inputdata out=Work.inputdata;run;
endrsubmit;

data want;
  merge inputdata mydata.crsp;

Or you can upload your data to the remote server and run the analysis there:

rsubmit;
  proc upload data=mydata.crsp out=Work.crsp;run;
  data want;
    merge xx.inputdata crsp;
  /* more SAS code here */
endrsubmit;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 3581 views
  • 0 likes
  • 2 in conversation