Hi all,
I want to create excel worksheet having output from 4 different proc prints. Currently it is creating 4 different worksheet.
I appreciate all your help.
Regards,
Amit
ods tagsets.excelxp file="Test.xls"
path="XXXXX"
options(sheet_name='test' autofit_height='yes'
orientation='landscape' ) style=default;
proc print data=combo;
run;
proc print data=ModelCStat;
run;
proc print data=ModelCTable;
run;
proc print data=ModelResProfile;
run;
ods tagsets.excelxp close;
RTM or website.
Try the sheet_interval option.
And, in order to read the internal documentation, use the doc='Help' suboption, as shown below.
cynthia
ods tagsets.excelxp file="Test.xls" style=default;
path="XXXXX"
options(doc='Help' sheet_name='test'
autofit_height='yes'
orientation='landscape' );
....more code here....
ods tagsets.excelxp close;
As Reeza suggests, use the sheet_interval option...
ods tagsets.excelxp file="Test.xls"
path="XXXXX"
options(sheet_interval="none" sheet_name='test' autofit_height='yes'
orientation='landscape' ) style=default;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.