<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tagsets.ExcelXP - Suppressing metadata sheets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9684#M2959</link>
    <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Sorry I didn't provide all the information you may have needed. I tried to keep it simple so as not to bog the problem down with too many details.&lt;BR /&gt;
&lt;BR /&gt;
Anyway thanks for your reply. I have been through the various programs and macros called throughout the whole process and did indeed find a few PROC DATASETS' which ended with RUN; instead of QUIT;. However this still did not fix the problem. I then compared the interactive log to the batch run and found that one of the DATASETS procedures before the output was putting a list to the log in batch. I added a NOLIST option to it and thankfully that did the job!&lt;BR /&gt;
&lt;BR /&gt;
Thanks very much for your help! I never would have thought to check anything like that!&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Adam.</description>
    <pubDate>Fri, 01 Oct 2010 09:03:26 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-10-01T09:03:26Z</dc:date>
    <item>
      <title>tagsets.ExcelXP - Suppressing metadata sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9682#M2957</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm producing output in Excel using tagsets.ExcelXP and for some reason I'm getting 2 additional (unwanted) sheets created containing metadata. The first holds the following:&lt;BR /&gt;
&lt;BR /&gt;
Directory	&lt;BR /&gt;
Libref	&lt;BR /&gt;
Engine	&lt;BR /&gt;
Physical Name	&lt;BR /&gt;
File Name	&lt;BR /&gt;
Inode Number	&lt;BR /&gt;
Access Permission	&lt;BR /&gt;
Owner Name	&lt;BR /&gt;
File Size (bytes)	&lt;BR /&gt;
&lt;BR /&gt;
and the second is a listing of Name, Member Type, File Size and Last Modified.&lt;BR /&gt;
&lt;BR /&gt;
I've found that the issue occurs when the code is run from a %include within a program run from batch, but what's also strange is that this is not happening for all files output this way, yet the code used is the same:&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods tagsets.ExcelXP file = "listing.xls";&lt;BR /&gt;
** Open Sheet in Excle File **;&lt;BR /&gt;
ods tagsets.ExcelXP options(embedded_titles='yes' &lt;BR /&gt;
									 embedded_footnotes='yes'&lt;BR /&gt;
									 sheet_name="CBRM_1_"&lt;BR /&gt;
									 default_column_width= "10, 10"&lt;BR /&gt;
									 FROZEN_HEADERS='4');&lt;BR /&gt;
&lt;BR /&gt;
** Proc Report **;&lt;BR /&gt;
proc report data=reportdata nowd split="#" missing &lt;BR /&gt;
	style(report)=[rules=all cellspacing=0 font_size=8pt font_face=arial]&lt;BR /&gt;
	style(header)=[background=lightskyblue foreground=black just=left font_size=8pt font_weight=bold]&lt;BR /&gt;
	style(column)=[background=white foreground=black vjust=top just=left font_size=8pt]; &lt;BR /&gt;
&lt;BR /&gt;
	column x y z;&lt;BR /&gt;
&lt;BR /&gt;
	define x 	/ order noprint;&lt;BR /&gt;
  	define y 	/ display "Y" width=9 left;&lt;BR /&gt;
  	define z 	/ display "Z" width=11 left;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagset.ExcelXP close;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
It does not seem to happen when the code is run interactively, nor when the individual programs are run in batch. Only when they're run as %includes within the main program.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any idea what may be causing this and what I can do to prevent the additional sheets being produced?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Thu, 30 Sep 2010 14:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9682#M2957</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-30T14:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.ExcelXP - Suppressing metadata sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9683#M2958</link>
      <description>Hi:&lt;BR /&gt;
The information on the unwanted sheet looks suspiciously like the PROC DATASETS output shown in this documentation topic:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001397000.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001397000.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I would suspect that either your %INCLUDE has a PROC DATASETS step that does not end with QUIT; or you have previously run an unclosed PROC DATASETS in your session. PROC DATASETS does not end with RUN; -- it ends with QUIT; so it is possible that in some instances (such as local submission, you do NOT have PROC DATASETS running before you do your submit.) But in other instances, like the %INCLUDE, you might have a PROC DATASETS somewhere in the code that precedes the included code???&lt;BR /&gt;
                   &lt;BR /&gt;
  Are you sure that the %INCLUDE code is -EXACTLY- the same as the code when you submit locally???? Can you post a sample of your file WORK.REPORTDATA?? Or, can you duplicate the results using SASHELP datasets????&lt;BR /&gt;
&lt;BR /&gt;
  You say that "this is not happening for all files output this way" -- but your program is always going against WORK.REPORTDATA, which has the variables X, Y and Z. What "other" files??? How are "all the files" files run through PROC REPORT??? Or, by "all the files" do you mean the LISTING.XLS output from ODS TAGSETS.EXCELXP.&lt;BR /&gt;
&lt;BR /&gt;
  Do you see any difference in the LOG messages when you submit the code locally versus submitting it with %INCLUDE???? If there are differences, can you post the LOGs here??? Please check the log carefully after every execution and look for "file in use" messages such as this one:&lt;BR /&gt;
[pre]&lt;BR /&gt;
2963  ods tagsets.excelxp file='c:\temp\listing.xls' style=sasweb;&lt;BR /&gt;
NOTE: Writing TAGSETS.EXCELXP Body file: c:\temp\listing.xls&lt;BR /&gt;
ERROR: File is in use, c:\temp\listing.xls.&lt;BR /&gt;
WARNING: No body file. TAGSETS.EXCELXP output will not be created.&lt;BR /&gt;
2964    proc print data=sashelp.class;&lt;BR /&gt;
2965    run;&lt;BR /&gt;
                 &lt;BR /&gt;
WARNING: No output destinations active.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
I don't have any other more concrete suggestions. If you can't figure it out, you might want to open a track with Tech Support -- they can look at ALL your code -- including the code that might precede the %INCLUDE code to see if they can figure out what's happening.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 30 Sep 2010 15:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9683#M2958</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-30T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: tagsets.ExcelXP - Suppressing metadata sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9684#M2959</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Sorry I didn't provide all the information you may have needed. I tried to keep it simple so as not to bog the problem down with too many details.&lt;BR /&gt;
&lt;BR /&gt;
Anyway thanks for your reply. I have been through the various programs and macros called throughout the whole process and did indeed find a few PROC DATASETS' which ended with RUN; instead of QUIT;. However this still did not fix the problem. I then compared the interactive log to the batch run and found that one of the DATASETS procedures before the output was putting a list to the log in batch. I added a NOLIST option to it and thankfully that did the job!&lt;BR /&gt;
&lt;BR /&gt;
Thanks very much for your help! I never would have thought to check anything like that!&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Adam.</description>
      <pubDate>Fri, 01 Oct 2010 09:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagsets-ExcelXP-Suppressing-metadata-sheets/m-p/9684#M2959</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-01T09:03:26Z</dc:date>
    </item>
  </channel>
</rss>

