<p> Recreating a SAS Data Set from a Compressed SAS Transport File<br/>For SAS transport file created by PROC CPORT, follow these steps to recreate the SAS dataset:</p><p><br/>Begin by uncompressing the downloaded file. Use unzip if you are unzipping the file on an Unix machine or use WinZip/pkzip if you are unzipping the file on a PC. You will then have the SAS Transport file created using PROC CPORT. </p><p>The program listed below will recreate the SAS data set from the Transport file. WARNING: All of the SCF data sets are rather large, make sure you have enough space to recreate the data set before running the program.<br/>LIBNAME OUT 'output SAS library';<br/>FILENAME IN 'input transport file name';</p><p>PROC CIMPORT DATA=OUT.dataset INFILE=IN;<br/>RUN; </p><p>For SAS transport file created by PROC COPY with an XPORT option, follow these steps to recreate the SAS dataset:</p><p>Begin by uncompressing the downloaded file. Use unzip if you are unzipping the file on an Unix machine or use WinZip/pkzip if you are unzipping the file on a PC. You will then have the SAS Transport file created using PROC COPY with an XPORT option. </p><p>The program listed below will recreate the SAS data set from the Transport file. WARNING: All of the SCF data sets are rather large, make sure you have enough space to recreate the data set before running the program.<br/>LIBNAME NEW 'output SAS library';<br/>LIBNAME TRANS XPORT 'input transport file name';</p><p><br/>PROC COPY IN=TRANS OUT=NEW;<br/>RUN; </p><p><br/>ENDSAS;</p><p><br/>我有个数据文件,用sas不能直接打开,说是要用上述方法导入,但我不太明白具体步骤和顺序。请大家帮助,谢谢!</p>
[此贴子已经被作者于2008-5-31 11:10:54编辑过]