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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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