Hi All,
I am new to perl. Normally, we export xls and pdf format from database. but one of client asks to export as xpt and sas xpt format. Please give some steps which software I install and installation steps. I cant view xpt and sas file normally. Its very very urgent to complete this task. Anybody give idea on this?
Thanks,
S.Sujatha
I guess that your user refers to the libname export engine:
But I find export files created by PROC CPORT more useful, they keep more of data sets attributesn in the export file.
I guess that your user refers to the libname export engine:
But I find export files created by PROC CPORT more useful, they keep more of data sets attributesn in the export file.
For software, you need to install Base SAS. If you wish to export data directly from the source database you might need a SAS/ACCESS module.
To avoid that, you could first export your data to an external file, import it to SAS, and then do the transport file. But as you hear, this is awkward.
So, what is the use case, why can't your user access the data directly from the database? Using ODBC or similar.
This document contains the record layout for a SAS .xpt file
https://support.sas.com/techsup/technote/ts140.pdf
You do not need to have SAS installed to create a .xpt file.
Why do you have a need to do this? I find most in my industry at least are moving rapidly away from XPT (considering its a pretty old format now (version 6!). To my mind you would be better off putting your effort into XML output as that is the immediate future, and its open source.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.