how to import XTP files into SAS datasets?



how to import XTP files into SAS datasets?..

Answer / prashanthi.a

libname xptfile xport "&libname\test.xpt";
libname sasfile2 "&libname\new\";

proc copy in=xptfile out=sasfile2 memtype=data;
run;
for example:
libname xptdmg xport 'C:\Documents and Settings\user2\My
Documents\pk_analysis\Work\02data_raw\dmg.xpt';

proc copy in=xptdmg out= rawdata memtype= data;
run;

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More SAS Interview Questions

How to include or exclude specific variables in a data set?

0 Answers  


what are the validation tools in sas?

3 Answers   TCS,


How do you add a number to a macro variable?

2 Answers  


What is the difference between match merge and one to one merge?

0 Answers  


What is connection profile? : sas-grid-administration

0 Answers  






what is the prob plot in clinical domain

1 Answers   TCS,


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

0 Answers  


What sas features do you use to check errors and data validation?

0 Answers  


how can you import .csv file in to sas? : Sas programming

0 Answers  


explain the proc in sas? : Sas-administrator

0 Answers  


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

0 Answers  


What are the applications primarily used by business analyst? : Sas-bi

0 Answers  


Categories