Stata can read SAS transport files with the command
fdause filename.fileextention
So if you have a SAS set up file and need to run a SAS program to convert an ASCII data, you may create a transport file using SAS while at it. An alternative is to convert the SAS data file using DBMS\Copy On Windows. However, if you use DBMS\Copy, be aware that there are some issues associated with using it for compressed SAS data. For more information, see
Using DBMS\Copy on SAS Data.
Here are some codes to create a SAS transport file in SAS:
/* specify the path of the input file to be converted */
libname getdatafromhere 'H:\Download\10103176\ICPSR_06961\DS0001\';
/* specify the path and the name to save as the transport file */
libname putdatahere XPORT 'H:\data\NELS2.xpt';
PROC COPY IN= getdatafromhere OUT=putdatahere;
SELECT nels; /* the name of the input file that is found at the input location */
RUN;





