BHarmon, Thank you for your reply. I have played around a bit with your suggestions, but I still get the same errors. This is what the macro statement looks like: %macro aeoutput(whr=%str(1=1), file=, tnum=, ttitle=%str(), foot1=%str(), foot2=%str(), foot3=%str(), foot4=%str(), foot5=%str(), label=%str()); And this is the error messages that results when I run the macro call as displayed in my original post: 48796 %aeoutput(file=DR_SER, 48797 tnum=14.3.5, 48798 ttitle=%str(Frequency Table of Drug-Related Serious Adverse Events), 48799 foot1=%str(¬e1.), 48800 foot2=%str(¬e3.), 48801 foot3=%str(¬e4.), ERROR: All positional parameters must precede keyword parameters. 48802 foot4=%str($note5.), ----- 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 48803 whr=%str(ec20ae=1 & serious=1 & relate in (3,4,5)), 48804 label=%str(Drug-Related Serious Adverse Event)); Does this help clarify in any way?
... View more