05-31-2018 02:07 PM
We have an existing job running via Unix batch that utilizes ODS Excel. Prior to our conversion to SAS 9.4M4 the following code put the proc report output and the proc gplot on the same tab. We create multiple tabs (ALL, MC, PL) Prior to the conversion, the following code did this perfectly, now all the data is in one tab. I have reviewed all the OPTIONS for ODS Excel and I can find a reason for this. Appreciate any help you can provide. Additionally, when this code runs in SAS EG, multiple tabs are created. When we run via batch submit, we get one tab only
ods excel file="filename..xls" style=normal;
ods excel options(embedded_titles='yes'
sheet_name = "&sheetname"
proc tabulate data=all_months out=auths;
class disposition reason rar_transaction_date;
table disposition*reason*(n='#'*f=comma12. colpctn='%'*f=5.2) (all='Total'*f=comma12.),
authorizations * rar_transaction_date=' ';
ods graphics / height=500 width=2000 ;
ods listing gpath="%sysfunc(getoption(work))";
proc sgplot data=graph1;
title "Unit Rate";
vline rar_transaction_date / response=unit_rate ;
XAXIS label = 'Date';
YAXIS label = 'Unit Rate' GRID min=0;
05-31-2018 03:37 PM
05-31-2018 06:06 PM - edited 05-31-2018 06:07 PM
Also, and this is minor, but could cause issues. When you use ODS EXCEL, the valid file extension is .XLSX (not .xls as your show). You should be getting a Microsoft warning window with .XLS as the file extension. Also GOPTIONS should not have an impact on PROC SGPLOT -- you should put your imagefmt= option in the ODS GRAPHICS statement.