Dear all,
Hope you're doing OK 🙂
I come to you because of the following: I need to generate a different XLS file for each group in a BY statement.
Also important: the name of each file should be the corresponding category from the BY statement.
As of now, I'm working with the following code:
ods tagsets.excelxp file='multisheet.xls' style=statistical
options( sheet_interval='bygroup' );
proc sort data=PRUEBA_COM out=class;
by attribute_4;
run;
proc print data=class;
by attribute_4;
run;
ods tagsets.excelxp close;
(Code obtained from: https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html#data)
That code gives me a sheet from each BY group (which is fine) and the name of each sheet is "attribute_4=xxxx" (which is also fine).
The thing is they all are in a single file ("multisheet.xls"). So, my questions are as follows:
1) Do you know of any other way to generate single XLS files and name them after their BY category?
2) If not, is there a way to re-import this Excel file ("multisheet") and split the sheets afterwards in different XLS files named after each sheet's name?
Thank you!