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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.