<?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: How to stop Excel Sheets from popping up in SAS Results Viewer window in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11159#M3051</link>
    <description>Hi:&lt;BR /&gt;
  You might check the setting:&lt;BR /&gt;
 Tools ► Options ► Preferences ► &lt;BR /&gt;
       Results ► View results as they are generated &lt;BR /&gt;
 &lt;BR /&gt;
and if "View results as they are generated" is checked or turned on -- uncheck it or turn it off. That means you will have to explicitly click on the output icon to launch Excel in order to view the results.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 04 Oct 2010 18:38:35 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-10-04T18:38:35Z</dc:date>
    <item>
      <title>How to stop Excel Sheets from popping up in SAS Results Viewer window</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11158#M3050</link>
      <description>Using SAS 9.1.3 with SP4, on Windows XP Pro Platform,with SP3.  I use PROC REPORT and ODS to output HTML files for Excel 2003 to read as spreadsheets for my reports.  I didn't knowingly modify my SAS code, but for some reason, each of the 20 spreadsheets are popping up in the Results Viewer display window, one at a time as they are created.   How do I stop this behaviour ?&lt;BR /&gt;
&lt;BR /&gt;
Presently, I'm having to go in and manually close all those spreadsheets, before the program will move on to other steps.&lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
ods listing close ;&lt;BR /&gt;
  &lt;BR /&gt;
%macro loanrpt(uwgrp=,uwsubset=) ;&lt;BR /&gt;
 &lt;BR /&gt;
data &amp;amp;uwgrp._loans_&amp;amp;monyr ;  &lt;BR /&gt;
   set all_loans_&amp;amp;monyr ;&lt;BR /&gt;
     where channel in (&amp;amp;uwsubset)   ; &lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc summary data=all_loans_&amp;amp;monyr nway ;&lt;BR /&gt;
     where measure like 'DBus%' and channel in (&amp;amp;uwsubset)   ;&lt;BR /&gt;
  class new_renew c_a ;&lt;BR /&gt;
  var meas_amt ;&lt;BR /&gt;
  output out=&amp;amp;uwgrp._totals (drop=_type_ _freq_) sum= ;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc delete data=totfmt ;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
data totfmt ;&lt;BR /&gt;
   set &amp;amp;uwgrp._totals ;&lt;BR /&gt;
   length start $4. n_r $1.;&lt;BR /&gt;
   n_r = substr(new_renew,1,1) ;&lt;BR /&gt;
   if c_a = 'Count' then&lt;BR /&gt;
      start = n_r||'CNT' ;&lt;BR /&gt;
   else&lt;BR /&gt;
   if c_a = 'Balance' then&lt;BR /&gt;
      start = n_r||'BAL' ;&lt;BR /&gt;
   else&lt;BR /&gt;
      start = n_r||'LIM' ;    &lt;BR /&gt;
   label = left(put(meas_amt,12.)) ;&lt;BR /&gt;
   fmtname = "$RTOTAL" ;&lt;BR /&gt;
run;&lt;BR /&gt;
  	&lt;BR /&gt;
proc sort data=totfmt nodupkey ;&lt;BR /&gt;
   by start ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc format cntlin=totfmt;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
TITLE j=l "&lt;IMG src="\\ccsas1\blc_whse\Dhub\Tech - reporting\pgms\util\Company Logotype.jpg" height="30" /&gt;" ;&lt;BR /&gt;
&lt;BR /&gt;
title2 ' ' ;&lt;BR /&gt;
title3 "&lt;FONT face="Arial" size="4"&gt;AnybankUSA Business Banking&lt;/FONT&gt;" ;&lt;BR /&gt;
 &lt;BR /&gt;
ods html body="\\ccsas1\blc_whse\dhub\Reports_monthly\output\loan_exc_&amp;amp;uwgrp._&amp;amp;monyr._new.xls" ;&lt;BR /&gt;
 &lt;BR /&gt;
title4 "&lt;FONT face="Arial" size="4"&gt;Loan System Exceptions - &amp;amp;uwgrp &lt;/FONT&gt;" ;&lt;BR /&gt;
title5 "&lt;FONT face="Arial" size="4"&gt;New - &amp;amp;monyr &lt;/FONT&gt;" ;&lt;BR /&gt;
  &lt;BR /&gt;
PROC REPORT DATA=&amp;amp;uwgrp._loans_&amp;amp;monyr LS=159 PS=67  SPLIT="/" &lt;BR /&gt;
	HEADLINE HEADSKIP CENTER MISSING nowd ;&lt;BR /&gt;
	  where new_renew = 'NEW'  ;&lt;BR /&gt;
	 &lt;BR /&gt;
COLUMN  ( measure c_a group,( meas_amt ) G_Total new_renew perc_tot);&lt;BR /&gt;
&lt;BR /&gt;
DEFINE  measure / GROUP FORMAT= $75. WIDTH=25    SPACING=2   FLOW LEFT "Measure" ;&lt;BR /&gt;
DEFINE  c_a / GROUP FORMAT= $16. WIDTH=16    SPACING=2   LEFT "Data" ;&lt;BR /&gt;
DEFINE  group / ACROSS FORMAT= $SPCHDR23. WIDTH=23  SPACING=2   LEFT ORDER=formatted " " ;&lt;BR /&gt;
DEFINE  meas_amt / SUM FORMAT= COMMA9. WIDTH=9     SPACING=2   RIGHT " " ;&lt;BR /&gt;
DEFINE  G_Total / COMPUTED FORMAT= COMMA10. WIDTH=10    SPACING=2   RIGHT "Grand/Total/" ;&lt;BR /&gt;
define  new_renew / group noprint ;&lt;BR /&gt;
DEFINE  perc_tot / COMPUTED FORMAT= percent7.2 WIDTH=8   SPACING=2   RIGHT "Pct/Total" ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
compute perc_tot ;&lt;BR /&gt;
if g_total ne 0 then&lt;BR /&gt;
  do;&lt;BR /&gt;
    if new_renew = 'NEW' then&lt;BR /&gt;
	  if c_a = 'Count' then&lt;BR /&gt;
	    lookup = "NCNT" ;&lt;BR /&gt;
 	  else&lt;BR /&gt;
	  if c_a = 'Balance' then&lt;BR /&gt;
	    lookup = "NBAL" ;&lt;BR /&gt;
	  else&lt;BR /&gt;
	    lookup = "NLIM" ;&lt;BR /&gt;
	else&lt;BR /&gt;
	  if c_a = 'Count' then&lt;BR /&gt;
	    lookup = "RCNT" ;&lt;BR /&gt;
 	  else&lt;BR /&gt;
	  if c_a = 'Balance' then&lt;BR /&gt;
	    lookup = "RBAL" ;&lt;BR /&gt;
	  else&lt;BR /&gt;
	    lookup = "RLIM" ;&lt;BR /&gt;
&lt;BR /&gt;
    overall_tot = input(put(lookup,$RTOTAL.),12.) ;&lt;BR /&gt;
    perc_tot = g_total / overall_tot ;&lt;BR /&gt;
  end;&lt;BR /&gt;
else&lt;BR /&gt;
  perc_tot = 0 ;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
COMPUTE  measure / CHAR LENGTH=75 ;&lt;BR /&gt;
measure = substr(measure, 2, 74);&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
COMPUTE  G_Total;&lt;BR /&gt;
g_total = 0;&lt;BR /&gt;
if _c3_ ge 0 then g_total = _c3_ +g_total;&lt;BR /&gt;
if _c4_ ge 0 then g_total = _c4_ +g_total;&lt;BR /&gt;
if _c5_ ge 0 then g_total = _c5_ +g_total;&lt;BR /&gt;
if _c6_ ge 0 then g_total = _c6_ +g_total;&lt;BR /&gt;
if _c7_ ge 0 then g_total = _c7_ +g_total;&lt;BR /&gt;
if _c8_ ge 0 then g_total = _c8_ +g_total;&lt;BR /&gt;
if _c9_ ge 0 then g_total = _c9_ +g_total;&lt;BR /&gt;
if _c10_ ge 0 then g_total = _c10_ +g_total;&lt;BR /&gt;
if _c11_ ge 0 then g_total = _c11_ +g_total;&lt;BR /&gt;
if _c12_ ge 0 then g_total = _c12_ +g_total;&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close ; &lt;BR /&gt;
&lt;BR /&gt;
ods html body="\\ccsas1\blc_whse\dhub\Reports_monthly\output\loan_exc_&amp;amp;uwgrp._&amp;amp;monyr._renew.xls" ;&lt;BR /&gt;
 &lt;BR /&gt;
title5 "&lt;FONT face="Arial" size="4"&gt;Renew - &amp;amp;monyr &lt;/FONT&gt;" ;&lt;BR /&gt;
  &lt;BR /&gt;
PROC REPORT DATA=&amp;amp;uwgrp._loans_&amp;amp;monyr LS=159 PS=67  SPLIT="/" &lt;BR /&gt;
	HEADLINE HEADSKIP CENTER MISSING nowd ;&lt;BR /&gt;
	  where new_renew = 'REN'  ;&lt;BR /&gt;
	 &lt;BR /&gt;
COLUMN  ( measure c_a group,( meas_amt ) G_Total new_renew perc_tot);&lt;BR /&gt;
&lt;BR /&gt;
DEFINE  measure / GROUP FORMAT= $75. WIDTH=25    SPACING=2   FLOW LEFT "Measure" ;&lt;BR /&gt;
DEFINE  c_a / GROUP FORMAT= $16. WIDTH=16    SPACING=2   LEFT "Data" ;&lt;BR /&gt;
DEFINE  group / ACROSS FORMAT= $spchdr23. WIDTH=23   SPACING=2   LEFT ORDER=formatted " " ;&lt;BR /&gt;
DEFINE  meas_amt / SUM FORMAT= COMMA9. WIDTH=9     SPACING=2   RIGHT " " ;&lt;BR /&gt;
DEFINE  G_Total / COMPUTED FORMAT= COMMA10. WIDTH=10    SPACING=2   RIGHT "Grand/Total/" ;&lt;BR /&gt;
define  new_renew / group  noprint ;&lt;BR /&gt;
DEFINE  perc_tot / COMPUTED FORMAT= percent7.2 WIDTH=8   SPACING=2   RIGHT "Pct/Total" ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
COMPUTE  measure / CHAR LENGTH=75 ;&lt;BR /&gt;
measure = substr(measure, 2, 74);&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
COMPUTE  G_Total;&lt;BR /&gt;
g_total = 0;&lt;BR /&gt;
if _c3_ ge 0 then g_total = _c3_ +g_total;&lt;BR /&gt;
if _c4_ ge 0 then g_total = _c4_ +g_total;&lt;BR /&gt;
if _c5_ ge 0 then g_total = _c5_ +g_total;&lt;BR /&gt;
if _c6_ ge 0 then g_total = _c6_ +g_total;&lt;BR /&gt;
if _c7_ ge 0 then g_total = _c7_ +g_total;&lt;BR /&gt;
if _c8_ ge 0 then g_total = _c8_ +g_total;&lt;BR /&gt;
if _c9_ ge 0 then g_total = _c9_ +g_total;&lt;BR /&gt;
if _c10_ ge 0 then g_total = _c10_ +g_total;&lt;BR /&gt;
if _c11_ ge 0 then g_total = _c11_ +g_total;&lt;BR /&gt;
if _c12_ ge 0 then g_total = _c12_ +g_total;&lt;BR /&gt;
ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
compute perc_tot ;&lt;BR /&gt;
if g_total ne 0 then&lt;BR /&gt;
  do;&lt;BR /&gt;
    if new_renew = 'NEW' then&lt;BR /&gt;
	  if c_a = 'Count' then&lt;BR /&gt;
	    lookup = "NCNT" ;&lt;BR /&gt;
 	  else&lt;BR /&gt;
	  if c_a = 'Balance' then&lt;BR /&gt;
	    lookup = "NBAL" ;&lt;BR /&gt;
	  else&lt;BR /&gt;
	    lookup = "NLIM" ;&lt;BR /&gt;
	else&lt;BR /&gt;
	  if c_a = 'Count' then&lt;BR /&gt;
	    lookup = "RCNT" ;&lt;BR /&gt;
 	  else&lt;BR /&gt;
	  if c_a = 'Balance' then&lt;BR /&gt;
	    lookup = "RBAL" ;&lt;BR /&gt;
	  else&lt;BR /&gt;
	    lookup = "RLIM" ;&lt;BR /&gt;
		 &lt;BR /&gt;
    overall_tot = input(put(lookup,$RTOTAL.),12.) ;&lt;BR /&gt;
    perc_tot = g_total / overall_tot ;&lt;BR /&gt;
  end;&lt;BR /&gt;
else&lt;BR /&gt;
  perc_tot = 0 ;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close ; &lt;BR /&gt;
 &lt;BR /&gt;
%mend ;&lt;BR /&gt;
 &lt;BR /&gt;
%loanrpt(uwgrp = EXPRESS,uwsubset = "EXPRESS") ;&lt;BR /&gt;
&lt;BR /&gt;
%loanrpt(uwgrp = STANDARD,uwsubset = "STANDARD") ;&lt;BR /&gt;
&lt;BR /&gt;
%loanrpt(uwgrp = CUSTOM, uwsubset = "CUSTOM") ;&lt;BR /&gt;
&lt;BR /&gt;
%loanrpt(uwgrp = ALL, uwsubset = "EXPRESS" "STANDARD" "CUSTOM") ;</description>
      <pubDate>Mon, 04 Oct 2010 16:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11158#M3050</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2010-10-04T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Excel Sheets from popping up in SAS Results Viewer window</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11159#M3051</link>
      <description>Hi:&lt;BR /&gt;
  You might check the setting:&lt;BR /&gt;
 Tools ► Options ► Preferences ► &lt;BR /&gt;
       Results ► View results as they are generated &lt;BR /&gt;
 &lt;BR /&gt;
and if "View results as they are generated" is checked or turned on -- uncheck it or turn it off. That means you will have to explicitly click on the output icon to launch Excel in order to view the results.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 04 Oct 2010 18:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11159#M3051</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-04T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Excel Sheets from popping up in SAS Results Viewer window</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11160#M3052</link>
      <description>Also useful: &lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
... which explains how to use the [pre] and [/pre] tags around your code and output in order to maintain indenting and spacing.</description>
      <pubDate>Mon, 04 Oct 2010 18:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11160#M3052</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-04T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Excel Sheets from popping up in SAS Results Viewer window</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11161#M3053</link>
      <description>Thank you, Cynthia@SAS.  It certainly was set to "View results as they are generated".  I unchecked that box and it solved the problem.  Is that some default setting that might have been reset when we renewed our SAS license back in June of this year ?  It just started happening "out of the blue".</description>
      <pubDate>Wed, 06 Oct 2010 17:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11161#M3053</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2010-10-06T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop Excel Sheets from popping up in SAS Results Viewer window</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11162#M3054</link>
      <description>Hi:&lt;BR /&gt;
  I have some vague memory that "View Results as they are generated" has been around ever since ODS came out. How that choice was implemented for each version -- I think it's ALWAYS been checked by default. At least, when I do an install of SAS on my machine, I ALWAYS have to uncheck or turn off that option.&lt;BR /&gt;
 &lt;BR /&gt;
  However, your folks may have done something different in the past when they were deploying SAS for installation -- so I can't speak to why it seemed to suddenly happen 'out of the blue'. You might pursue this with Tech Support if it really bothers you. Now that you know how to turn off the automatic open, you should be OK with how to toggle the automatic viewing on and off.&lt;BR /&gt;
 &lt;BR /&gt;
 cynthia</description>
      <pubDate>Wed, 06 Oct 2010 17:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-stop-Excel-Sheets-from-popping-up-in-SAS-Results-Viewer/m-p/11162#M3054</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-06T17:24:35Z</dc:date>
    </item>
  </channel>
</rss>

