Re: .xpt file inport into SAS
Right or wrong: it depends on the type of transportfile. If it was created
with PROC CPORT it must be imported by PROC CIMPORT. If it was created
with the XPORT engine, it must be imported by something like:
libname a XPORT "the-path-to-the-file";
proc copy in=a out=work;
Unfortunately the transportfiles have no type extention, so you can't see
what it is. Just try to allocate it via XPORT engine and use the "dir a"
command to see what it is. If it is a CPORT file, you'll get a error
message. In that case you cannot be sure, that it is a CPORT file (could
be anything else), but you can be sure that it is no XPORT file.
On Wed, 11 Apr 2007 23:00:03 -0700, Get <easwara@GMAIL.COM> wrote:
>You can use Proc CIMPORT to import xpt files onto SAS.
>filename tranfile 'C:\Your_file_name.xpt';
>libname <library_name> <destination>;
> proc cimport library=<library_name> infile=tranfile memtype=data;
>On Apr 12, 1:31 pm, "diwedi" <lucky...@gmail.com> wrote:
>> Dear please tell me how to inport .xpt file into SAS
|Thread||Thread Starter||Forum||Replies||Last Post|
|Noobie here - EOF (hex 1A) Q. (long post)||Duh_OZ||Newsgroup comp.soft-sys.sas||0||03-11-2008 01:33 PM|
|Re: How to address .XPT file in Proc sql||Gerhard Hellriegel||Newsgroup comp.soft-sys.sas||0||12-04-2007 01:37 PM|
|Re: write to file without data step?||data _null_;||Newsgroup comp.soft-sys.sas||0||06-19-2007 07:38 PM|
|.xpt file inport into SAS||diwedi||Newsgroup comp.soft-sys.sas||1||04-12-2007 07:00 AM|
|Code to automatically import sets from within access mdb tables||Friar Broccoli||Newsgroup comp.soft-sys.sas||1||11-17-2006 04:32 PM|