06-09-2016 11:45 AM
Does anyone know how to convert SAS V8 Transport File Format to SAS data set? Many thanks.
I created a code below:
libname source 'C:\My SAS Files\IIT';
libname xportout xport 'C:\My SAS Files\IIT\Data_CID_new version_hard drive.xpt';
One Error message is shown that:
ERROR: File SOURCE.GRADES.DATA does not exist.
How is that come???
06-09-2016 03:16 PM
Check your log to make sure the library was actually created.
Then check the spelling of your dataset name to ensure it is in the library.
I don't see where you are trying to convert a transport file though. The way you are using or xport library is for output not input.
typically I would expect to see Proc Cimport to read a transport file:
proc cimport library=mylib infile="path\file.xpt"; run;
06-09-2016 05:54 PM
I agree with @ballardw that PROC CIMPORT is the right tool if the .xpt file was created using PROC CPORT. However, if it was created using the XPORT engine (in which case I think it would actually be a SAS V5 transport file), I would use:
proc copy in=xportout out=work; /* or choose another output library */ run;