Hi. PROC EXPORT does not keep formats, but the ODS tagsets does. Below is a sample code that will keep ALL your formats. ods listing close; ods tagsets.excelxp path = "&output_path." file="&data..xml" style=analysis options(absolute_column_width='10,10,8,8,10,10,15,8,15,8,15,10,8,8,8,8,10,10,15,8,15,8,15,10,8,8,8,8,20' sheet_label=' '); ods tagsets.excelxp options(sheet_name="sheetname"); proc print noobs label data = &data.; var your_variables; run; ods tagsets.excelxp close; ods listing; Good luck!
... View more