<?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: ODS PDF Spacing between Columns in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38790#M5390</link>
    <description>Hi:&lt;BR /&gt;
  Not sure what you mean by "obtain" or what you mean by "column options". The method that you use to increase a single column width with ODS PDF involves the use of the CELLWIDTH style attribute in SAS 9.1.3 (or the WIDTH style attribute  in SAS 9.2). If you search the forum for previous postings, you should find some examples of using the CELLWIDTH style attribute.&lt;BR /&gt;
 &lt;BR /&gt;
  If you want to show an "empty column" between 2 other columns, that is not something that would happen automatically with SAS. It would be easier to help if you provided the procedure code that you're using, and some idea of what your data is like, as well as your platform (AIX) and destination of choice (PDF) and version of SAS (9.1.3).&lt;BR /&gt;
 &lt;BR /&gt;
  For informatioin about how to indent code and include code in forum postings, this is useful information:&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;
cynthia</description>
    <pubDate>Mon, 11 Jan 2010 15:59:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-01-11T15:59:03Z</dc:date>
    <item>
      <title>ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38787#M5387</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
How can i obtain spacing between 2 column options in ODS PDF&lt;BR /&gt;
&lt;BR /&gt;
Version: SAS 9.1.3&lt;BR /&gt;
Operating System : AIX</description>
      <pubDate>Mon, 11 Jan 2010 09:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38787#M5387</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-01-11T09:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38788#M5388</link>
      <description>Clarification request: "obtain" or "increase" spacing?&lt;BR /&gt;
&lt;BR /&gt;
Also, suggest you share whatever code you are executing for a more useful response.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 11 Jan 2010 13:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38788#M5388</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-11T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38789#M5389</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
ODS Method : ODS PDF&lt;BR /&gt;
SAS Verion : SAS 9.1.3&lt;BR /&gt;
Operating System : AIX&lt;BR /&gt;
&lt;BR /&gt;
The code as requested:&lt;BR /&gt;
==================&lt;BR /&gt;
&lt;BR /&gt;
options nobyline nonumber linesize=100 pagesize=60 nocenter nodate;&lt;BR /&gt;
&lt;BR /&gt;
ODS PATH work.templat(update) sasuser.templat(read)&lt;BR /&gt;
               sashelp.tmplmst(read);&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style border;&lt;BR /&gt;
parent=Styles.Printer;&lt;BR /&gt;
replace table from table /&lt;BR /&gt;
     borderwidth=0.0&lt;BR /&gt;
	      ;&lt;BR /&gt;
replace header from header / &lt;BR /&gt;
background=grayff;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* Calculate the sysdate value in the format requireda  and store */&lt;BR /&gt;
/* it in the macro variable to be used in the TITLE statement     */&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	call symput('_sysdate',put(input("&amp;amp;sysdate.",date7.),ddmmyyp10.));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ODS _ALL_ CLOSE;&lt;BR /&gt;
*FILENAME EGPDF 'test.pdf';&lt;BR /&gt;
*ODS PDF(ID=EGPDF) &lt;BR /&gt;
    FILE=EGPDF &lt;BR /&gt;
    NOTOC &lt;BR /&gt;
    STYLE=border ;&lt;BR /&gt;
ods pdf file="RD033.pdf" notoc style = border;	&lt;BR /&gt;
	&lt;BR /&gt;
    ;&lt;BR /&gt;
ods escapechar ='~';&lt;BR /&gt;
&lt;BR /&gt;
title1  &lt;BR /&gt;
    justify = c font=Helvetica height=9pt bold  '#ByVal1'   ;&lt;BR /&gt;
&lt;BR /&gt;
title2  &lt;BR /&gt;
	justify = l font=arial     height=8pt       '#ByVal2 '&lt;BR /&gt;
	justify = r font=arial     height=8pt       "Utskriftsdato: &amp;amp;_sysdate. kl &amp;amp;systime.  side ~{thispage} av ~{lastpage} ";&lt;BR /&gt;
title3;&lt;BR /&gt;
title4 &lt;BR /&gt;
	justify = l font=arial     height=8pt       '#ByVal3' justify = c font = arial height = 8pt "Postnummer fra: &amp;amp;from_cd.";&lt;BR /&gt;
title5 &lt;BR /&gt;
	justify = c font=arial     height=8pt       "Postnummer til:&amp;amp;to_cd." ;&lt;BR /&gt;
&lt;BR /&gt;
title6 '_____________________________________________________________________________________';&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
footnote1 ;&lt;BR /&gt;
footnote2;&lt;BR /&gt;
footnote3;&lt;BR /&gt;
footnote4;&lt;BR /&gt;
footnote5;&lt;BR /&gt;
footnote6;&lt;BR /&gt;
footnote7;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report data = VL0608_104R_ADDRESS_DISTR_LST1 nowd spacing = 50 wrap ls=100 &lt;BR /&gt;
	style(summary)={htmlstyle="border-top:solid;border-bottom:solid"} split='*';&lt;BR /&gt;
*	BY Report_name Report_ID Org_unit_Nm Org_unit_id;&lt;BR /&gt;
	BY Report_Name Report_Id Title_Line2;* Postal_Code_Cd Sort_Variable Address_List;&lt;BR /&gt;
&lt;BR /&gt;
	columns &lt;BR /&gt;
		Report_Name&lt;BR /&gt;
		Report_Id&lt;BR /&gt;
		Postal_Code_Cd&lt;BR /&gt;
		Sort_Variable&lt;BR /&gt;
&lt;BR /&gt;
		Address_list&lt;BR /&gt;
		Organization_id&lt;BR /&gt;
		Organization_Nm&lt;BR /&gt;
		Rack_Id&lt;BR /&gt;
		Sort_Variable&lt;BR /&gt;
		_Postal_Code_Cd;&lt;BR /&gt;
		&lt;BR /&gt;
&lt;BR /&gt;
	define Report_ID/group noprint;&lt;BR /&gt;
	define Report_name/group noprint;&lt;BR /&gt;
	define Sort_Variable/order noprint;&lt;BR /&gt;
	define Postal_Code_Cd/noprint;&lt;BR /&gt;
	define Location_set_type_cd/group noprint;&lt;BR /&gt;
	&lt;BR /&gt;
&lt;BR /&gt;
	define Address_list/left flow "GATE/VEI/STED" spacing=20 &lt;BR /&gt;
					style(column)=[cellwidth=380pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define Organization_Nm/left flow "   "&lt;BR /&gt;
					style(column)=[cellwidth=10pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [cellwidth=10pt font_weight=bold font=(Arial, 6pt) just = left] flow;	&lt;BR /&gt;
&lt;BR /&gt;
	define Organization_id/left flow 'ENHET' spacing = 10&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define Rack_Id/left 'REOLNR' spacing = 10&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define _Postal_code_cd/left 'POSTNR' spacing = 10&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
	break after Sort_Variable/skip ol suppress;&lt;BR /&gt;
&lt;BR /&gt;
	compute after Sort_Variable;&lt;BR /&gt;
  		line ' ';&lt;BR /&gt;
	endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS _all_ close;&lt;BR /&gt;
==================</description>
      <pubDate>Mon, 11 Jan 2010 15:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38789#M5389</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-01-11T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38790#M5390</link>
      <description>Hi:&lt;BR /&gt;
  Not sure what you mean by "obtain" or what you mean by "column options". The method that you use to increase a single column width with ODS PDF involves the use of the CELLWIDTH style attribute in SAS 9.1.3 (or the WIDTH style attribute  in SAS 9.2). If you search the forum for previous postings, you should find some examples of using the CELLWIDTH style attribute.&lt;BR /&gt;
 &lt;BR /&gt;
  If you want to show an "empty column" between 2 other columns, that is not something that would happen automatically with SAS. It would be easier to help if you provided the procedure code that you're using, and some idea of what your data is like, as well as your platform (AIX) and destination of choice (PDF) and version of SAS (9.1.3).&lt;BR /&gt;
 &lt;BR /&gt;
  For informatioin about how to indent code and include code in forum postings, this is useful information:&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;
cynthia</description>
      <pubDate>Mon, 11 Jan 2010 15:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38790#M5390</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-01-11T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38791#M5391</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
When i print the report, with the specified spacing using ODS PDF i am not able to see the spacing actually being applied. eg&lt;BR /&gt;
&lt;BR /&gt;
VALUE1 VALUE2 .....&lt;BR /&gt;
&lt;BR /&gt;
Even though i give a spacing of 10 it is still retains 1 spacing.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Russell</description>
      <pubDate>Mon, 11 Jan 2010 16:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38791#M5391</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-01-11T16:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Spacing between Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38792#M5392</link>
      <description>Sorry:&lt;BR /&gt;
  I cross-posted with you. I'm not sure what you're trying to achieve with your PROC TEMPLATE and PROC REPORT code.&lt;BR /&gt;
 &lt;BR /&gt;
  When you use the REPLACE statement in SAS 9.1.3, you must RESPECIFY all the style elements that you want to keep, as outlined here in the documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/early-access/odsdoc2/sashtml/tw5195/z1072349.htm" target="_blank"&gt;http://support.sas.com/rnd/base/early-access/odsdoc2/sashtml/tw5195/z1072349.htm&lt;/A&gt;&lt;BR /&gt;
where it says:&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
If you use the REPLACE statement to create a style element in the new style definition, all style elements that inherit from that element inherit the definition that is in the new style definition. &lt;U&gt;If you want to keep any attributes that are specified in the definition that is in the parent&lt;/U&gt;, you must &lt;U&gt;respecify&lt;/U&gt; them in the definition that you create in the child style definition.&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Usually, with a template such as yours, I would expect to see more style attributes specified for both TABLE and HEADER style elements. However, since you're using PROC REPORT and are using STYLE attributes in the REPORT syntax, I'm not sure why you're even using a custom TEMPLATE at all.&lt;BR /&gt;
 &lt;BR /&gt;
  In your PROC REPORT code, you have some options, like SPACING= and FLOW and LS and WRAP ....  which will NOT be used by ODS PDF at all. These are "LISTING" destination options -- meant to be used in a destination, such as the LISTING window or OUTPUT window, where every character represents 1 print position in a monospace font. Since ODS works with proportional fonts, options such as this LISTING-only options just do not work. In addition, you show the use of HTMLSTYLE, which you showed in a previous forum posting as well -- this technique will NOT work with ODS PDF. I would suggest that you do the following as a test:&lt;BR /&gt;
1) Get rid of the HTMLSTYLE references in your PROC REPORT step, as they will only apply to ODS HTML output...not ODS PDF output&lt;BR /&gt;
2)  get rid of the template step completely&lt;BR /&gt;
3) move your border width controls (it looks to me like you want to get rid of the border entirely??? and your header controls into the PROC REPORT statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data = VL0608_104R_ADDRESS_DISTR_LST1 nowd split='*'&lt;BR /&gt;
       style(header)={background=white}&lt;BR /&gt;
       style(report)={rules=none frame=void cellspacing=0 borderwidth=0}&lt;BR /&gt;
       style(summary)={background=graycc} split='*';&lt;BR /&gt;
                &lt;BR /&gt;
[/pre]&lt;BR /&gt;
            &lt;BR /&gt;
You can investigate the various interactions and possibilities of using RULES and FRAME and CELLSPACING by reading the ODS DOCUMENTATION under the topic: "Style Attributes and Their Values". (I changed "grayff" to "white", since that is the color represented by "grayff").&lt;BR /&gt;
                     &lt;BR /&gt;
4) You cannot simulate an OVERLINE using HTMLSTYLE with ODS PDF, as previously explained. As an alternative, I have highlighted your summary line with a background color of graycc. You could choose an alternate type of highlighting, such as:&lt;BR /&gt;
[pre]&lt;BR /&gt;
   style(summary)={font_weight=bold font_style=italic font_size=14pt}&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                   &lt;BR /&gt;
Because the spacing = 50, spacing = 20 and spacing=10  will not work for ODS PDF, I would suggest you use cellwidth to increase the width of individual columns. Text will flow appropriately when you use ODS PDF, RTF and HTML, you do not need the FLOW option, as shown in the example below. Remember that with ODS PDF, you can also use the following SAS system options, in an OPTIONS statement to impact ODS PDF output:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=landscape topmargin=".5in" bottommargin=".5in" &lt;BR /&gt;
        leftmargin=".5in" rightmargin=".5in";&lt;BR /&gt;
      &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                 &lt;BR /&gt;
cynthia&lt;BR /&gt;
     &lt;BR /&gt;
*** Example of automatic FLOW of text;&lt;BR /&gt;
                 &lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate nonumber center orientation=portrait&lt;BR /&gt;
        leftmargin=".5in" rightmargin=".5in" &lt;BR /&gt;
        topmargin=".5in" bottommargin=".5in";&lt;BR /&gt;
                     &lt;BR /&gt;
%let long = Twas brillig and the slithy toves did gyre and gimble in the wabe.;&lt;BR /&gt;
%let long2 = All mimsy were the borogroves and the momeraths outgrabe.;&lt;BR /&gt;
              &lt;BR /&gt;
** make some "big variables" in a copy of SASHELP.CLASS;&lt;BR /&gt;
data makebig;&lt;BR /&gt;
   length bigvar bigvar2 bigvar3 $250 ;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
                                  &lt;BR /&gt;
   bigvar = catx(' ', name,"&amp;amp;long","&amp;amp;long2");&lt;BR /&gt;
                   &lt;BR /&gt;
   bigvar2 = bigvar;&lt;BR /&gt;
   bigvar3 = bigvar;&lt;BR /&gt;
run;&lt;BR /&gt;
                           &lt;BR /&gt;
ods pdf file='c:\temp\flow_cellwidth.pdf' ;&lt;BR /&gt;
                                    &lt;BR /&gt;
proc report data=makebig(obs=2) nowd split='*'&lt;BR /&gt;
     style(header)={background=white}&lt;BR /&gt;
     style(summary)={font_weight=bold font_style=italic background=graycc};&lt;BR /&gt;
 title '1a) Control Flow with CELLWIDTH';&lt;BR /&gt;
                                      &lt;BR /&gt;
 column name age height weight bigvar bigvar2 bigvar3;&lt;BR /&gt;
 define bigvar / "CW=2in"&lt;BR /&gt;
        style(column)={just=l font_size=10pt font_face='Helvetica'&lt;BR /&gt;
                       cellwidth=2.0in};&lt;BR /&gt;
                              &lt;BR /&gt;
 define bigvar2 / "CW=1in"&lt;BR /&gt;
        style(column)={just=l font_size=10pt font_face='Helvetica'&lt;BR /&gt;
                       cellwidth=1.0in};&lt;BR /&gt;
                                       &lt;BR /&gt;
 define bigvar3 / "CW=1.5in"&lt;BR /&gt;
        style(column)={just=l font_size=10pt font_face='Helvetica'&lt;BR /&gt;
                       cellwidth=1.5in};&lt;BR /&gt;
 rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
               &lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 11 Jan 2010 16:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Spacing-between-Columns/m-p/38792#M5392</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-01-11T16:42:06Z</dc:date>
    </item>
  </channel>
</rss>

