<?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: why does my SAS9.4 open excel output everytime I run my program? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696385#M212692</link>
    <description>It's a setting in SAS. Studio, EG and Base all have settings to stop the opening, usually under preferences somewhere. It's a "show results as generated" option.</description>
    <pubDate>Wed, 04 Nov 2020 00:27:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-11-04T00:27:07Z</dc:date>
    <item>
      <title>why does my SAS9.4 open excel output everytime I run my program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696362#M212684</link>
      <description>&lt;P&gt;Does anyone know if this is a setting in SAS9.4 or is in in my proc report?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everytime I run my program it opens 15 excel outputs of each subjects.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO pp;
	%do i=1  %to &amp;amp;subj_n.;
		%let select_subj = %scan(&amp;amp;subj., &amp;amp;i., '#');  *Creating macro variables to select patients one by one;


		************************************************************************************************************************
		**********************************	Generating pdf reports with patients profiles	************************************
		************************************************************************************************************************;
		options;
		ods listing close;
		ods escapechar='^';
		ods tagsets.excelxp options(sheet_interval="NONE") file="Patient Profile Subject &amp;amp;select_subj..xml";
		*ods tagsets.ExcelXP file="Patient Profile Subject &amp;amp;select_subj..xml" style=statistical;
	
	*	ods html close;
		
	*	ods pdf file = "Patient Profile Subject &amp;amp;select_subj..pdf" startpage=no style= TLF_CN_9;
		option formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*" ls=70 ps=70 missing = " " nobyline nocenter nodate nonumber orientation=landscape;
		title; 
		title1 j=l "" j=r "DNDI-Master";
		title2 j=l "" j=r "Page ^{thispage} of ^{lastpage}";
		title3 j=c " ";
		title4 j=c "Patient Profile";
		title5;
		title6 j=l "Subject:&amp;amp;select_subj. 	";

		footnote;
		footnote1 j=l " ";
		footnote2 j=l " ";
		footnote3 j=l " ";
		footnote4 j=c "Patient Profile - MMB Request";
		footnote5 j=l "Program Name: &amp;amp;prname." j=c "Dataset Extraction Date: (&amp;amp;datextrt.)" j=r "Generation Date/Time: %sysfunc(today(), yymmdd10)/&amp;amp;systime.";

		*****	dm report	********;
		proc report data = dmlst.demographics (where=(sub_profile_id="&amp;amp;select_subj.")) split = "|" spacing = 3 missing nowindows headline headskip style(header)={textalign=l} spanrows;
			columns ("Dataset(s) : Demographics, Informedconsentconsenteme_2" sub_profile_id dsstdat version_id icprsubj age sex_decode race);
		
			define sub_profile_id /group left width = 38 "Subject ID";
			define dsstdat /display left width = 40 "Informed Consent Date|/dsstdat";
			define version_id /display left width = 40 "Protocol Version Number|/version_id";
			define icprsubj /display left width = 40 "Previous Subject Number|/icprsubj";
			define age /display left width = 40 "Age|/icprsubj";
			define sex_decode /display left width = 40 "Gender|/sex_decode";
			define race /display left width = 20 "Race|/multi vars";
		run;



	%end;
%mend pp;
*************************************************************************************************************************************************************
*************************************************************************	END OF MACRO *************************************************************
*************************************************************************************************************************************************************;
%pp;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Nov 2020 22:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696362#M212684</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2020-11-03T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: why does my SAS9.4 open excel output everytime I run my program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696363#M212685</link>
      <description>&lt;P&gt;You need to post the SAS log with the SAS option MPRINT so we can see what is going on.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 23:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696363#M212685</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-03T23:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: why does my SAS9.4 open excel output everytime I run my program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696379#M212689</link>
      <description>&lt;P&gt;If you are running the SAS Display Manage (Base or Foundation) the opening of each of these is because the default before have has been set that way.&lt;/P&gt;
&lt;P&gt;You can check the menu:&lt;/P&gt;
&lt;P&gt;Tools&amp;gt;Options&amp;gt;Preferences, go to the Results tab. If you see a group of options called Result Options and a check mark in the box before "View results as they are generated" that is the setting.&lt;/P&gt;
&lt;P&gt;Uncheck the results and the file will quite opening. Until you go back re-check the box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 23:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696379#M212689</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-03T23:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: why does my SAS9.4 open excel output everytime I run my program?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696385#M212692</link>
      <description>It's a setting in SAS. Studio, EG and Base all have settings to stop the opening, usually under preferences somewhere. It's a "show results as generated" option.</description>
      <pubDate>Wed, 04 Nov 2020 00:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/why-does-my-SAS9-4-open-excel-output-everytime-I-run-my-program/m-p/696385#M212692</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-04T00:27:07Z</dc:date>
    </item>
  </channel>
</rss>

