Good Morning! I want to export a few dataset's to excel using SAS, But I have a few challenges here. Both datasets are unique and which we cannot merge or append.
There are 2 programs that create 2 dataset's each, however, I want to export program1 output datasets(2 datasets) to excel sheet1 and Program2 output dataset'(2 datasets) to Excel sheet2.
I tried using Proc print but it didn't work
ods excel file="&OUTFILE." options(sheet_interval="none" sheet_name="sheet1");
TITLE 'CLOSED_SR_VOLUMES_BY_PERCENT';
proc print data=CLOSED_SR_VOLUMES_BY_PERCENT;
run;
TITLE 'CLOSED_SR_VOLUMES_BY_VOLUME';
proc print data=CLOSED_SR_VOLUMES_BY_MONTH;
run;
ods excel options(sheet_interval="none" sheet_name="sheet2");
TITLE 'ACTIVE_SR_VOLUMES_BY_VOLUME';
proc print data=SR_VOLUMES_BY_MONTH;
run;
TITLE 'ACTIVE_SR_VOLUMES_BY_PERCENT';
proc print data=SR_VOLUMES_BY_PERCENT;
run;
ods excel close;
I am not getting any error but all the datasets are exporting it to one excel sheet instead 2 datasets into sheet1 and another 2 datasets into Sheet2.
Please let me know if there any way to this...
sasandexceltags using this search query:[excel] -[sas]. Alternatively you can read the title of the question (this one explicitly states 'using SAS' as part of the title), or look at the tags before clicking into the question. Of the 195k questions on SO that contain anexceltag, only 1k of them also contain asastag. So ignoring one question out of every 200 shouldn't be too much of an ordeal regardless. Personally, I still think the upside of listing both tags outweighs the downsides.