BookmarkSubscribeRSS Feed
nazmul
Quartz | Level 8

Hello everyone,

 

I am working on WRDS server using rsubmit. I want to directly download data from WRDS server to my computer hard drive. But I am getting the following error. Could you please help to sort out the problem? I would appreciate your help.

 

To include my hard drive in rsubmit, I am running the following code:

 

libname US 'F:\Full Paper\Dissertations\US';
rsubmit;
libname US 'F:\Full Paper\Dissertations\US';
endrsubmit;

 

But I am getting the following error,

 

name US 'F:\Full Paper\Dissertations\US';
NOTE: Libref US was successfully assigned as follows:
Engine: V9
Physical Name: F:\Full Paper\Dissertations\US
91 rsubmit;
NOTE: Remote submit to WRDS commencing.
97 libname US 'F:\Full Paper\Dissertations\US';
NOTE: Library US does not exist.
NOTE: Remote submit to WRDS complete.

 

My main objective is to run the following SQL function;


rsubmit;
proc sql; create table US.b1999
as select a.*, b.*
from bdx.F1 as a
inner join b1999 as b
on a.a=b.b and a.c<=b.yr1; run;
endrsubmit;

 

Here. US is my hard drive folder and bdx is a WRDS server.

5 REPLIES 5
Tom
Super User Tom
Super User

Why not just use PROC DOWNLOAD to move the data from the remote to local?

libname local 'F:\.....';
rsubmit;
proc sql ;
create table WORK.xxx as
.....
quit;
proc download data=xxx out=local.xxx;
run;
endrsubmit;
nazmul
Quartz | Level 8
Thank you for your reply. The file is very large in size and i have very
low download speed. Therefore, i want to directly send the file to my hard
drive.
Patrick
Opal | Level 21

@nazmul wrote:
Thank you for your reply. The file is very large in size and i have very
low download speed. Therefore, i want to directly send the file to my hard
drive.

If you want to move data from the server to your local environment then you need to transfer the data at one time over the network. 

You could use remote library services (RLS) for the code you have in mind but I strongly doubt that this would give you better performance. https://go.documentation.sas.com/?docsetId=connref&docsetTarget=n1oda0s1uwd6nqn1ofyq60lgfp9z.htm&doc... 

 

Having Windows on both sides you could also consider to first create the table on the server side, then zip it, download the zip file and then unzip it again on the client side. 

LinusH
Tourmaline | Level 20

Remote Library Services is probably the slowest way to download data (unless they have boosted the performance in the latest releases).

One thing that could be faster is if your server can map your desired location as a shared drive (like accessing it using a UNC).

If this is one time job, why bother?

 

Data never sleeps
Tom
Super User Tom
Super User

@nazmul wrote:
Thank you for your reply. The file is very large in size and i have very
low download speed. Therefore, i want to directly send the file to my hard
drive.

I don't see how that will help.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 5 replies
  • 1314 views
  • 3 likes
  • 4 in conversation