BookmarkSubscribeRSS Feed
nammansachdeva
Calcite | Level 5

Im running into errors when trying to export my sas dataset to .dta format for Stata from SAS University Edition on a Virtual Machine. 

 

I'm using the following code : 

 

LIBNAME library "/folders/myfolders/";
PROC EXPORT DATA=opafy17nid
OUTFILE="/folders/myfolders/opafy17nid.dta"
DBMS=PCFS REPLACE;
SERVER="PCFilesServer" ;
RUN;

 

The log file shows: 

 
Bridge server not answering
ERROR: Export unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.11 seconds
cpu time 0.02 seconds
 
Could someone please help me out? 
3 REPLIES 3
Reeza
Super User

Try DBMS=Stata

 

I think the PCFS is old. 

 

Or right click file, select export and see what’s the generated code is doing. 

 

Edit: Had a chance to test, here's an example that definitely works:

proc export data=sashelp.class 
            outfile='/folders/myfolders/demo.dta' 
            dbms=stata 
            replace;
run;

 


@nammansachdeva wrote:

Im running into errors when trying to export my sas dataset to .dta format for Stata from SAS University Edition on a Virtual Machine. 

 

I'm using the following code : 

 

LIBNAME library "/folders/myfolders/";
PROC EXPORT DATA=opafy17nid
OUTFILE="/folders/myfolders/opafy17nid.dta"
DBMS=PCFS REPLACE;
SERVER="PCFilesServer" ;
RUN;

 

The log file shows: 

 
Bridge server not answering
ERROR: Export unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.11 seconds
cpu time 0.02 seconds
 
Could someone please help me out? 

 

Reeza
Super User
You also need to remove the server line.
nammansachdeva
Calcite | Level 5

Thanks a lot! I got the .dta file !!! 

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 3 replies
  • 2387 views
  • 0 likes
  • 2 in conversation