2 years ago

#69282

test-img

Robin

How to convert xpt file into sas file by xpt2loc?

I tried to convert a xpt file called "ae.xpt" into sas file called ae as well. The original file was saved at "D:\sdtm\data_xpt", and I want the converted sas file to be saved at "D:\sdtm\data_sas".

Here was my code, but it didn't work:

libname sasfiles 'D:\sdtm\data_sas';

%let Root=D:\sdtm\data_xpt;
%xpt2loc(libref=sasfiles, memlist=ae, filespec='&root\ae.xpt');

How to write the correct one? Thanks!

sas

sas-macro

0 Answers

Your Answer

Accepted video resources