Hi Users,
I am using tagsets.ExcelXP to create 2 sheets which are data exceptions of 2 separate programs. Oddly, the program that I used to output the exceptions to sheet1 called "xx Log" also creates additional sheets such as "xx Log 2" and "xx Log 3". The information contained in these sheets include information pertaining to datasets created in work directory, file size, owner information, directory, henceforth. I want to suppress these additional sheets in my output. Thanks in advance.
Here is my code
ods tagsets.ExcelXP path="g:\&project.\validation\print\" file="Visual_Check_Sheets_%sysfunc(date(),yymmdd6.).xls" style=normal options(row_height_fudge='18');
%inc valsheet1;
%inc valsheet2;
ods tagsets.ExcelXP close;
Use sheet_interval to control opening a new sheet. The default is 'Table', if your queries have multiple outputs then multiple sheets are created. Set this to sheet_interval='none'
Use sheet_interval to control opening a new sheet. The default is 'Table', if your queries have multiple outputs then multiple sheets are created. Set this to sheet_interval='none'
Thank you Surya for the prompt response !!. This worked
@Banoo wrote:
Hi Users,
I am using tagsets.ExcelXP to create 2 sheets which are data exceptions of 2 separate programs. Oddly, the program that I used to output the exceptions to sheet1 called "xx Log" also creates additional sheets such as "xx Log 2" and "xx Log 3". The information contained in these sheets include information pertaining to datasets created in work directory, file size, owner information, directory, henceforth. I want to suppress these additional sheets in my output. Thanks in advance.
Here is my code
ods tagsets.ExcelXP path="g:\&project.\validation\print\" file="Visual_Check_Sheets_%sysfunc(date(),yymmdd6.).xls" style=normal options(row_height_fudge='18');
%inc valsheet1;
%inc valsheet2;
ods tagsets.ExcelXP close;
Whatever is causing the issue is likely in the %included programs that we can't see.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.