Hi everyone,
The goal of my program below is to create a XML file. The datasets on input are SAS datasets (.sas7bdat). I have an error in my SAS log and i don't understand why.
Here is my code. Please note that the order must be as called (DM in first then SUPPDM, etc.) :
%macro export_xml(study=);
libname OUT xml92 "...\FE_ECL_ETUDE_FR_EC_&study..xml" tagset=tagsets.sasxmiss ;
%let list_domain= DM SUPPDM DS SV CO IE MH SU TS TV TA SE CM AE SUPPAE EX TI TE SC QS SS;
%macro read_xml;
%let i=1;
%let tab = %scan(&list_domain.,%eval(&i.)," ");
%do %until (&tab. = );
%if %sysfunc(exist(SDTM.&tab)) %then %do;
data OUT.&tab.;
set SDTM.&tab.;
run;
%end;
%let i=%eval(&i+1) ;
%let tab = %scan(&list_domain.,%eval(&i.)," ");
%end;
%mend read_xml;
%read_xml;
%mend export_xml;
%export_xml(study=18_02768);
Here are the datasets called in the code
And here is the first error in the log
NOTE: There were 67 observations read from the data set SDTM.DM.
NOTE: The data set OUT.DM has 67 observations and 28 variables.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
ERROR: Event Stack Overflow. This is probably caused by mis-matched begin and end event calls.
NOTE: DATA statement used (Total process time):
real time 20.27 seconds
cpu time 19.75 seconds
If someone could help me on this error, I will be very gratefull.
Best regards,
Bruno
... View more