<?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: SAS ODS table width in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673603#M202676</link>
    <description>&lt;P&gt;1. Please paste the code using the "insert SAS code" icon&lt;/P&gt;
&lt;P&gt;2. It'd be nice if we could run the code. Can you modify it to use a SASHELP table?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 02:01:35 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-31T02:01:35Z</dc:date>
    <item>
      <title>SAS ODS table width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673403#M202580</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I can’t understand why the line and table don’t have the same width (the document is attached).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My papersiez iz A: 8.3 x 11.7 inch&lt;/P&gt;
&lt;P&gt;So, I chosen OPTIONS TOPMARGIN=&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in BOTTOMMARGIN=&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in LEFTMARGIN=&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in RIGHTMARGIN=&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In obj.region(width: "7.3 in"), I chosen 7.3 (8.3-(0.5+0.5))=7.3&lt;/P&gt;
&lt;P&gt;In I have also 7.3: "table1",label: "Notre Première Table", overrides: "width=7.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is:&lt;/P&gt;
&lt;P&gt;OPTION NODATE NONUMBER;&lt;BR /&gt;OPTIONS PAPERSIZE=A4;&lt;BR /&gt;OPTIONS TOPMARGIN=0.5 in BOTTOMMARGIN=0.5 in LEFTMARGIN=0.5 in RIGHTMARGIN=0.5 in;&lt;BR /&gt;ODS NORESULTS;&lt;BR /&gt;ODS PDF FILE = "\\XXXXXX\TEST.pdf" dpi=1800;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data _NULL_;&lt;BR /&gt;set RESULTAT_PRFL_FINAL_PP_XL2(obs=1);&lt;BR /&gt;declare odsout obj();&lt;BR /&gt;obj.layout_absolute(columns:1 );&lt;BR /&gt;obj.line(style_attr:&lt;BR /&gt;"bordercolor=green", size:'0.8mm');&lt;BR /&gt;obj.region(width:&lt;BR /&gt;"3.5 in",x:"3.5 in",height:"1.2 in",y:"0.2 in" ,style_attr: "bordercolor=cx338AFF");&lt;BR /&gt;obj.format_text( data: "Information",&lt;BR /&gt;overrides: " just=left color=green font_weight=bold font_size=24pt ");&lt;BR /&gt;obj.region(width:&lt;BR /&gt;"7.3 in" ,height:"8 in",y:"1.4 in", style_attr: "");&lt;BR /&gt;obj.line(style_attr:&lt;BR /&gt;"bordercolor=green ", size:'0.8mm');&lt;BR /&gt;obj.table_start(name:&lt;/P&gt;
&lt;P&gt;"table1",&lt;BR /&gt;label: "Notre Première Table",&lt;BR /&gt;overrides: "width=7.3 in frame=void rules=none" );&lt;BR /&gt;obj.row_start();&lt;BR /&gt;obj.format_cell(data:&lt;/P&gt;
&lt;P&gt;"OBJECTIF" ,&lt;BR /&gt;column_span: 2 ,&lt;BR /&gt;overrides: "just=left vjust=middle backgroundcolor=green color=white&lt;BR /&gt;font_face='Calibri' font_weight=bold font_size=13pt");&lt;BR /&gt;obj.row_end();&lt;BR /&gt;obj.table_end();&lt;BR /&gt;obj.layout_end();&lt;BR /&gt;Run;&lt;/P&gt;
&lt;P&gt;ODS PDF CLOSE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673403#M202580</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-30T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS table width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673603#M202676</link>
      <description>&lt;P&gt;1. Please paste the code using the "insert SAS code" icon&lt;/P&gt;
&lt;P&gt;2. It'd be nice if we could run the code. Can you modify it to use a SASHELP table?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 02:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673603#M202676</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-31T02:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS table width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673633#M202696</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
OPTION NODATE NONUMBER;
OPTIONS PAPERSIZE=A4;
OPTIONS TOPMARGIN=0.5 in BOTTOMMARGIN=0.5 in LEFTMARGIN=0.5 in RIGHTMARGIN=0.5 in;
ODS NORESULTS;
ODS PDF FILE = "XXXXXX\TEST.pdf" dpi=1800;

data _NULL_;
	set SASHELP.CLASS(obs=1);
	declare odsout obj();
	obj.layout_absolute(columns:1 );
obj.line(style_attr:
	"bordercolor=green", size:'0.8mm');
obj.region(width:
	"3.5 in",x:"3.5 in",height:"1.2 in",y:"0.2 in" ,style_attr: "bordercolor=cx338AFF");
	obj.format_text( data: "Information",
		overrides: " just=left color=green font_weight=bold font_size=24pt ");
obj.region(width:
	"7.3 in" ,height:"8 in",y:"1.4 in", style_attr: "");
obj.line(style_attr:
	"bordercolor=green ", size:'0.8mm');
obj.table_start(name:

	"table1",
	label: "Notre Première Table",
	overrides: "width=7.3 in frame=void rules=none" );
	obj.row_start();
obj.format_cell(data:

	"OBJECTIF" ,
	column_span: 2 ,
	overrides: "just=left vjust=middle backgroundcolor=green color=white
	font_face='Calibri' font_weight=bold font_size=13pt");
	obj.row_end();
	obj.table_end();
	obj.layout_end();
Run;

ODS PDF CLOSE;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hello Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for a nice suggestion (I did not notice the "insert SAS code" icon&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Yes, I can use&amp;nbsp;SASHELP.CLASS for this programme.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 07:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673633#M202696</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-31T07:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS table width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673655#M202703</link>
      <description>&lt;P&gt;Sadly my version of SAS seems too old to support your code &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;WARNING: Invalid parameter 'COLUMNS' for method 'LAYOUT_ABSOLUTE'. Parameter will be ignored.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WARNING: WIDTH exceeds available space for PDF destination. This option will be ignored.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I am sure someone else will help.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 10:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673655#M202703</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-31T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS table width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673661#M202706</link>
      <description>Hello Chris,&lt;BR /&gt;Thank you!&lt;BR /&gt;I get the same warnings while the executing, but I get the pdf file. &lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jul 2020 10:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-table-width/m-p/673661#M202706</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-31T10:58:19Z</dc:date>
    </item>
  </channel>
</rss>

