I am generating single dataset transport files using the PROC CPORT method. I have no error/warning messages in the conversion to transport files, and have no issues re-importing the datasets using PROC CIMPORT. However, if I try to open the .xpt file using Universal Viewer then I get an error ("The file xxxxx could not be loaded, Invalid SAS transport file, problem on second record"). Can anyone please shed light on the cause of such an error. I've even tried a really simple test dataset (one variable, one entry), and still get the error. Here's the code I'm using to generate the transport files: %macro export (data=); filename &data "path......\&data..xpt"; proc cport data=ITP.&data file=&data; run; %mend export; %export (data=ADR) %export (data=COMPL) %export (data=CONMEDS) .................................... Thanks in advance! Elisa
... View more