Download data as a STATA format with SAS
Posted: 01 July 2015 06:36 AM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2015-07-01

Hi,

I’d like to know how to download data as a STATA format with SAS.

Here is the code I have so far and that I’d like to modify:

proc download data=mydata2 out=mylocal.ccmfundaex; *download output dataset to local location LOOK UP HOW TO DOWNLOAD AS STATA FORMAT;
run;
endrsubmit

Can someone help? Thanks!

Profile
 
 
Posted: 01 July 2015 11:57 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  901
Joined  2011-09-19

Hi,

Does the documentation for proc download give any clues?

If not, you can use proc export (on WRDS, in rsubmit block) to export it as a Stata file in your personal folder, and then use proc download (or SSH/FTP) to download it.

Another alternative is to download it as a SAS dataset and convert it to Stata with Stat-Transfer.

Best,

Joost

 Signature 

To reply/post new questions: Please use the group WRDS/SAS on Google Groups! http://groups.google.com/d/forum/wrdssas

Profile