I used the auto call program %loc2xpt to convert sas datasets to XPT using the below code. proc sql; create table sdtmDomains as select libname ,memname from dictionary.tables where libname eq 'SDTM' order by memname; quit; data _null_; set sdtmDomains end=eof; call symput('domain_' || strip(put(_n_,2.)) ,strip(lowcase(memname)) ); if eof then call symput('domainCnt',strip(put(_n_,2.))); run; %macro xpt; %do idx=1 %to &domainCnt; filename xptfile "c:\public\sdtm\&&domain_&idx...xpt"; %loc2xpt(libref=sdtm ,memlist=&&domain_&idx ,filespec=xptfile ); %end; %mend xpt; %xpt I am trying to change the above code to use with another auto call macro %xpt2loc to convert the xpt datasets back to sas datasets and I am ending with errors. %xpt2loc(libref=work, memlist=Thisisalongdatasetname, filespec='c:\trans.v9xpt' ); I susbstituted the above auto call code with %xpt2loc macro call and its not working. Any help on this issue. I have to convert 100 xpt datasets using the %xpt2loc macro.
... View more