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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.