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

What are the implications?

0 Answers   Quintiles,


What are _numeric_ and _character_ and what do they do?

1 Answers   Quintiles,


What is your weekness? I am confuse what to say about this question. so can u give some answer which can be yur strenght.

1 Answers   Cipla,


How would you remove a format that has been permanently associated with a variable? ________________

5 Answers   Quintiles, TCS,


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers  


Which is the best training Institute for SAS Business Intelligence course?

6 Answers  


what is hierarchy flattening? : Sas-di

0 Answers  


I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.

4 Answers  


What is SAS? is it a software just for use or we can creat something over there?

5 Answers   Cognizant,


what is the diff b/w verification validation in sas

3 Answers   SAS,


Name and describe three SAS functions that you have used, if any?

4 Answers   Accenture,


In this question, I rename the numeric variable phone to numphone and then try use phone=put(numphone,comma16.) to store the numeric value numphone as a string value in phone. But I get a warning tha numphone already exists and in the data sat phone doesnt exist and numphone is set to missing. Why? data names_and_more; input Name $20. Phone : comma16. Height & $10. Mixed & $8.; Name = tranwrd(Name,' ',' '); rename phone = numphone; phone = put(numphone,comma16.); datalines; Roger Cody 9,087,821,234 5ft. 10in. 50 1/8 Thomas Jefferson 3,158,488,484 6ft. 1in. 23 1/2 Marco Polo 8,001,234,567 5Ft. 6in. 40 Brian Watson 5,183,551,766 5ft. 10in 89 3/4 Michael DeMarco 4,452,322,233 6ft. 76 1/3 ;

1 Answers  


Categories