I am trying to create separate reports by a category...in this case "state". There are four tables which I contain data which I need to populate into 4 sheets per state. %macro a (StateNum, State); ods tagsets.excelxp file="&qtr._&StateNum._&StateNum..xls" path='H:\path_name' style=statistical options(sheet_interval='proc' absolute_column_width="10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9"); ods tagsets.excelxp options(sheet_name = "buildings"); proc print data=buildingfinal noobs label; where StateNum=&StateNum.; run;*/ ods tagsets.Excelxp options(sheet_name="streets"); proc print data=streets noobs label; where StateNum=&StateNum.; run;*/ ods tagsets.excelxp close; %mend a; %a(1, Alaska) ; run; quit; ods tagsets.excelxp close; ods listing; I am getting these errors: ERROR: No body file. TAGSETS.EXCELXP output will not be created. ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR, ARCHIVE, ATTRIBUTES, AUTHOR, BASE, BODY, BOX_SIZING, CHARSET, CLOSE, CODE, CODEBASE, COLUMNS, CONTENTS, CSSSTYLE, DATA, DOM, DPI, ENCODING, EVENT, FILE, FRAME, GFOOTNOTE, GPATH, GTITLE, HEADTEXT, IMAGE_DPI, METATEXT, NEWFILE, NOGFOOTNOTE, NOGTITLE, OPERATOR, OPTIONS, PACKAGE, PAGE, PARAMETERS, PATH, RECORD_SEPARATOR, SGE, STARTPAGE, STYLE, STYLESHEET, TAGSET, TEXT, TRANTAB, TYPE, UNIFORM. ERROR 202-322: The option or parameter is not recognized and will be ignored. Any advise?
... View more