Saturday, October 1, 2016

Export sas dataset to non fda xpt format

*Syntax;

LIBNAME   Rameshlb  "C:\Dev\Ramesh";
FILENAME destfile "C:\Dev\home_training\ltest.xpt";
PROC CPORT LIBRARY = Rameshlb  FILE = destfile ;
 SELECT test/MEMTYPE=data;
RUN;

/*
Explanation:

LIBNAME   <name of the library where the dataset is>  "<path to that library>";
FILENAME destfile "path and name of the destination file with .xpt extension";
PROC CPORT LIBRARY = <name of the library where the dataset is>  FILE = destfile ;
 SELECT <name of the dataset that you are exporting>/MEMTYPE=data;
RUN;
*/

No comments:

Post a Comment