Hi, I am trying to use the ODS Excel destination with SAS 9.4M5, and I am getting a couple of odd results:
Has anyone came across these issues and how were they overcome?
ods _all_ close;
ods results off;
ods excel
style=DATA_REPORTING
options(sheet_name = "Data Dictionary"
orientation = "Portrait"
row_heights = "0,0"
flow = "tables"
frozen_headers = "Yes"
frozen_rowheaders = "Yes"
autofilter = "All"
index = "No"
);
proc report data = tpl.datadictionary split = "^"
style(header column) = [font_size=10pt]
style(header) = [verticalalign=middle tagattr='wraptext:yes']
style(column) = [verticalalign=top tagattr='wraptext:no'];
column Frame_element Description Data_type Explanation___Required_Codes___R Further_Information;
define Frame_element / display style(column)=[width=4.00in] "Field Name";
define Description / display style(column)=[width=4.00in] "Description";
define Data_type / display style(column)=[width=0.75in] "Data Type";
define Explanation___Required_Codes___R / display style(column)=[width=4.00in] "Explanation/Required Codes/Range";
define Further_Information / display style(column)=[width=2.00in] "Further Information";
compute Frame_element;
count+1;
if mod(count,2) then
call define(_row_, "style", "style=[backgroundcolor=#DCE6F1]");
endcomp;
run;
ods excel close;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.