0

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!

Pᴇʜ
  • 56,719
  • 10
  • 49
  • 73
Robin
  • 325
  • 2
  • 12
  • 1
    Macro variables need double quotes around them not single quotes. Also, please include the log with macro options when you run into these issues. – Reeza Jan 19 '22 at 17:00
  • Closing as dup of the macro variable resolve generic... if it turns out there's more issues other than &root not resolving to the full filename/path, please edit the Q to include a log. – Joe Jan 19 '22 at 23:09

0 Answers0