I used the SAS Xpt reader component to read a sas export file. However, I received a error message, "File is not in SAS Transport (XPORT) format
Below is the code that I used to produce the export file from a sas dataset(infile.sas7bdat):
proc cport data=foldername.infile file='/xport/test_outfile.xpt';
run;
I will appreciate any advice on how to read in the xport file and/or how to create a xport file from sas dataset. Thank you!

Hi @CC. I am not an expert in the XPORT file format, but have had some experience using sas7bdat files within Pipeline Pilot via the R "sas7bdat" package. As of version 2020 (and possibly earlier) of Pipeline Pilot, this package is one of the packages that we suggest be installed via the "Check R Installation" example protocol. This protocol can install packages required for the proper functioning of our R-based components, provided that the user running the protocol has write access to the R library folder on the server. I mention this because you could potentially use this as an alternative to the XPT reader. I have attached an example protocol that reads in a sas7bdat file from the web.
Another possible workaround would be to read in the sas7bdat file via Python using the pandas module. I don't currently have an example for that, but will post one here shortly.
As for trouble shooting the SAS XPT Reader I would be interested to know the following:
1. The version of Pipeline Pilot you are using.
2. The operating system (Windows or Linux) that hosts the Pipeline Pilot application.
3. Whether or not the SAS XPT Reader fails for all the selections possible on the "What to Read" parameter of that component and/or
4. a specific data set name is specified in the Data Set Name parameter.
Please feel free to file a support request at
https://www.3ds.com/support/
hopefully with your problematic XPORT file attached. I would be happy to take a look at it.
Hi again @CC Attached is a protocol that reads a SAS input file using Python and the "pandas" module. I don't have an XPORT file to test with, but this component can potentially handle that format as well as sas7bdat. Please see the "Format" parameter on the component. Choosing "None" will cause the input format to be inferred from the file extension.
I should have mentioned in my original post that the option of using R to read in your SAS sas7bdat file requires that you have the Pipeline Pilot Data Modeling Collection licensed and installed. The Python option does not require any specific collection.
Most likely, the problem with reading the file using the Pipeline Pilot "SAS XPT Reader" component is due to an XPORT version incompatibility. SAS has published two different XPORT formats. The older version 5 format is the one Pipeline Pilot supports, and is documented here: https://support.sas.com/techsup/technote/ts140.pdf. The newer version 8 format was published in 2012 and is documented here: https://support.sas.com/techsup/technote/ts140_2.pdf .
To @CC , I recommend that you see if SAS allows you to specify the XPORT version number when creating the .xpt file. If so, please use version 5.