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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.