how to import XTP files into SAS datasets?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of transport files?

6816


what are the categories that sas informats are used to the place the data? : Sas-administrator

606


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

588


What are the features of base sas system?

599


Can you execute macro within another macro? : sas-macro

515






Explain the main difference between the sas procedures and functions? : Sas-administrator

529


Mention few capabilities of sas framework.

681


how to remove duplicates using proc sql?

620


How can sas program be validated?

568


I have a dataset concat having variable a b & c. How to rename a b to e & f?

567


How do you specify the number of iterations and specific condition within a single do loop?

612


What is the difference between order and group variable in proc report?

824


Which function is used to count the number of intervals between two sas dates?

564


What do you know about symput and symget?

717


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2257