<?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: Change Excel Print Scale in SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411528#M19816</link>
    <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how fittopage is supposed to work.&amp;nbsp; I made sure that both of my files have identical total widths.&amp;nbsp; I have even attached screenshots for you to see how the print preview comes out.&amp;nbsp; The MedDRA file completely fills up the page while the WHODDE file still has wide left and right margins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The MedDRA file has 10 columns:&amp;nbsp;&amp;nbsp;absolute_column_width = '6,7,7,20,15,15,15,15,15,15'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The WHODDE file has 11 columns:&amp;nbsp;&amp;nbsp;absolute_column_width = '6,7,7,15,15,10,15,15,10,15,15'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both files have an absolute_column_width of 130.&amp;nbsp; Why don't they fill the page the same way?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 14:25:33 GMT</pubDate>
    <dc:creator>djbateman</dc:creator>
    <dc:date>2017-11-08T14:25:33Z</dc:date>
    <item>
      <title>Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411010#M19794</link>
      <description>&lt;P&gt;I have a couple of reports that I am exporting to Excel.&amp;nbsp; They are almost identical size wise (same number of columns with same widths).&amp;nbsp; However, when I print preview the files, one is scaled 73% and the other is scaled 49%.&amp;nbsp; I can't figure out why it does this or how to change it in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have this snippet in my code, but it doesn't seem to have an influence here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options TopMargin = 1.25in
        BottomMargin = 1.24in
	LeftMargin = 0.08in
	RightMargin = 0.08in;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 22:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411010#M19794</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-06T22:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411011#M19795</link>
      <description>&lt;P&gt;Do you have Fit to Page set?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 22:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411011#M19795</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-06T22:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411146#M19799</link>
      <description>&lt;P&gt;I am not sure if it could work, try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report ......&amp;nbsp; style={ output=100% };&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411146#M19799</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-07T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411185#M19801</link>
      <description>Thanks for the suggestion, but that didn't seem to work. I reran with that added, and when I attempted to open the file, I got a message "File cannot be opened".</description>
      <pubDate>Tue, 07 Nov 2017 14:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411185#M19801</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-07T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411186#M19802</link>
      <description>Where do I add that? Is it just in an option statement? In the PROC REPORT statement? I have searched for it but can't find where it goes.</description>
      <pubDate>Tue, 07 Nov 2017 14:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411186#M19802</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-07T14:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411228#M19805</link>
      <description>&lt;P&gt;Post your full code please.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:10:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411228#M19805</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-07T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411231#M19806</link>
      <description>&lt;P&gt;This is just the section that creates the report.&amp;nbsp; The second report is identical code but referencing a different dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait noxsync mprint mlogic symbolgen noquotelenmax
 		orientation=landscape
		TopMargin = 1.25in
		BottomMargin = 1.24in
		LeftMargin = 0.08in
		RightMargin = 0.08in;

ods listing close;
ods tagsets.excelxp file="S:\cdm\Programming\&amp;amp;compound.\&amp;amp;study.\UTR\&amp;amp;protocol._MedDRA_UTR_&amp;amp;currf..xml"  style=statistical;
ods tagsets.excelxp options (row_repeat = 'header'
				frozen_headers = '1'
				autofilter = 'yes'
				orientation = 'landscape'
				center_horizontal = 'yes'
				fittopage = 'yes'
				pages_fitwidth = '1'
				pages_fitheight = '500'
				absolute_column_width = '6,7,7,20,15,15,15,15,15,15'
				autofit_height = "yes"
				sheet_name = "MedDRA UTR"
				embedded_titles = 'no'
				embedded_footnotes = 'yes'
				wraptext = 'yes'
				gridlines = 'yes'
print_footer = "%nrstr(&amp;amp;amp;L) Current : %cmpres(&amp;amp;currf) &amp;amp;#10; Previous : %cmpres(&amp;amp;prevf) &amp;amp;#10; %cmpres(&amp;amp;pgmdt) &amp;amp;#10; New Term = New/modified since ‘Previous’ date &amp;amp;#10;
                %nrstr(&amp;amp;amp;R) Page: %nrstr(&amp;amp;amp;P) of %nrstr(&amp;amp;amp;N)" );

title1 j=l "Vertex Pharmaceuticals Incorporated";
title2 j=l "Protocol &amp;amp;protocol.";
title3 j=l "MedDRA Unique Terms Report - %cmpres(&amp;amp;vmeddra.)";
title4 j=l "Count of terms not coded:  %cmpres(&amp;amp;all_terms.)";

proc report data=all center nowindows headline headskip spacing=1 split='#' missing style(header)={background=lightyellow font_weight=bold foreground=black};
	column flag dsname rec_count term1 llt_name ptname hlt_name hlgtname bodsys comments;
	define flag / display center "New Term " flow;
	define dsname / display center "DataSet " flow;
	define rec_count / display center "Record Count" flow;
	define term1 / display center "Verbatim " flow;
	define llt_name / display center "Lowest Level Term" flow;
	define ptname / display center "Preferred Term " flow;
	define hlt_name / display center "High Level Term " flow;
	define hlgtname / display center "High Level Group Term" flow;
	define bodsys / display center "Primary System Organ Class" flow;
	define comments / display center "Report Review Comments" flow;
run;

ods tagsets.excelxp close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411231#M19806</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-07T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411236#M19807</link>
      <description>&lt;P&gt;You do have fittopage set, so that will scale each page to fit it on and it will differ because the data differs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;fittopage &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'yes'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411236#M19807</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-07T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411528#M19816</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how fittopage is supposed to work.&amp;nbsp; I made sure that both of my files have identical total widths.&amp;nbsp; I have even attached screenshots for you to see how the print preview comes out.&amp;nbsp; The MedDRA file completely fills up the page while the WHODDE file still has wide left and right margins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The MedDRA file has 10 columns:&amp;nbsp;&amp;nbsp;absolute_column_width = '6,7,7,20,15,15,15,15,15,15'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The WHODDE file has 11 columns:&amp;nbsp;&amp;nbsp;absolute_column_width = '6,7,7,15,15,10,15,15,10,15,15'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both files have an absolute_column_width of 130.&amp;nbsp; Why don't they fill the page the same way?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 14:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411528#M19816</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-08T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411560#M19819</link>
      <description>&lt;P&gt;Fit the Page is an Excel setting that basically tries to scale the data to 'fit a single page' for whatever page you have set up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setting both the absolute size and fittopage doesn't make sense in that respect. If you set it to NO, does it work the way you expect?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411560#M19819</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-08T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Excel Print Scale in SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411591#M19820</link>
      <description>Nope, that doesn't help either. Maybe I just need to tell the recipient of the reports to manually scale the shrunken report to fit the page before printing. I would like to automate it, but not everything can be automated.</description>
      <pubDate>Wed, 08 Nov 2017 17:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Change-Excel-Print-Scale-in-SAS/m-p/411591#M19820</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2017-11-08T17:05:33Z</dc:date>
    </item>
  </channel>
</rss>

