Dear SAS expert, Thank you in advance for your help! I created a macro below to dynamically generate define statements that are being used in proc report. %bquote is being used here. However, proc report can't process it. You can see the error message below. Can you please help identify the reason? Thanks! %macro ild_out; %do i=2 %to &max_ild.; %bquote( define e%eval(&i.-1)_prog_yn / "Did event%eval(&i.-1) progress to a higher grade per Investigator (Y/N)" style(column)=[cellwidth=0.8in] display; define e%eval(&i.-1)_prog_date / "If yes, date when event%eval(&i.-1) progressed to a higher grade (event&i.)" style(column)=[cellwidth=0.8in] display; define e&i._grade / "Grade of event&i." style(column)=[cellwidth=0.8in] display; define e&i._out / "Outcome of event&i." style(column)=[cellwidth=0.8in] display; define e&i._action / "Dose action of event&i. for DXd ADC" style(column)=[cellwidth=0.8in] display; ) %end; %mend ild_out; Using in proc report: define e1_action / "Dose action of initial event" style(column)=[cellwidth=1.2in] display; %ild_out define e1_aft_adc_dur / "Duration" style(column)=[cellwidth=0.8in] display;
... View more