Let's say that we have a SAS file on our computer called
hsb2.sas7bdat that is located in a directory called
c:\data and we
wish to convert into a SAS .xpt file.
libname out XPORT "c:\data\hsb2.xpt";data out.hsb2; set "c:\data\hsb2";run;一定要proc语句的话二楼的代码应该可以。
Let's say that we have a SAS file on our computer called hsb2.sas7bdat that is located in a directory called c:\data and we wish to convert into a SAS .xpt file.