Saturday, October 1, 2016

Import a non-fda xpt file to sas dataset

* Import a non-fda xpt file to sas dataset;

*syntax;

FILENAME  srcfile "C:\Dev\home_training\ntest.xpt";
PROC CIMPORT DATA = rameshlb.ntest INFILE = srcfile;
RUN;

*Explanation;
FILENAME  srcfile "<location and name of the xpt file that need to be imported>";
PROC CIMPORT DATA = <name of the library where you want to import>.<would be name of dataset> INFILE = srcfile;
RUN;

No comments:

Post a Comment