<?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 SAS ODS PDF REPORT style issue, broken lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-PDF-REPORT-style-issue-broken-lines/m-p/848436#M335442</link>
    <description>&lt;P&gt;I am presenting an abbreviation version of a STYLE (Template) that I wrote along with a REPORT procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path ( prepend )
         work.templat
         ( write )
         ;

proc template ;
  define style
         styles.fpt
       / store  = work.templat
         ;

   parent = styles.pearl ;

   style table
       / frame             = hsides
         rules             = groups
         cellpadding       = 3pt
         cellspacing       = 0pt
/*         width             = 100%*/
         borderwidth       = 2
         font              = fonts( "docFont" )
         ;

  end ;

run ;

/***********************/
options orientation             = landscape
        topmargin               = 0.75in
        bottommargin            = 0.75in
        rightmargin             = 0.75in
        leftmargin              = 0.75in
        ;

ods pdf
    file      = "C:\Users\&amp;amp;sysuserid.\Documents\My SAS Files\fpt2.pdf"
/*    style = styles.fda_rtf_tfl*/
    style     = styles.fpt
    startpage = never
    ;

title "With style( report ) = { width = 100% }" ;
proc report
   data  = sashelp.class
             ( obs = 5 )
   split = "~"
   missing
   style( report ) = { width             = 100% }
   ;

  column ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 1"
           name
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 2"
           age
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 3"
           sex
         )
         ;

  define name
       / "Name"
         style( column ) = [ cellwidth = 30% ] /* 30 */
         ;

  define age
       / "Age (Years)"
         style( column ) = [ cellwidth = 25% ] /* 55 */
         display
         ;

  define sex
       / "Sex"
         style( column ) = [ cellwidth = 25% ] /* 80 */
         ;

run ;

ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this test template, I commented out the WIDTH option, but I applied it in the REPORT statement.&amp;nbsp; I then ran the same code again with the STYLE( COLUMN ) option commented out.&amp;nbsp; &amp;nbsp;I arrive at the following pdf:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fpt.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78175i14E7F96244C996D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="fpt.jpg" alt="fpt.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I eliminate the space (breaks) in the lines?&amp;nbsp; Another issue is that using the inline style for the header over groups of columns is that the underlines of adjacent headers touch.&amp;nbsp; One program created an empty column via a dummy variable of one blank space.&amp;nbsp; We are not experience such issues in RTF output, so we may just start converting them and I have started learning the ODS DOCUMENT destination and the&amp;nbsp;DOCUMENT procedure, but the style will still be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our ultimate client is the FDA and other RAs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 22:16:06 GMT</pubDate>
    <dc:creator>KevinViel</dc:creator>
    <dc:date>2022-12-07T22:16:06Z</dc:date>
    <item>
      <title>SAS ODS PDF REPORT style issue, broken lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-PDF-REPORT-style-issue-broken-lines/m-p/848436#M335442</link>
      <description>&lt;P&gt;I am presenting an abbreviation version of a STYLE (Template) that I wrote along with a REPORT procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path ( prepend )
         work.templat
         ( write )
         ;

proc template ;
  define style
         styles.fpt
       / store  = work.templat
         ;

   parent = styles.pearl ;

   style table
       / frame             = hsides
         rules             = groups
         cellpadding       = 3pt
         cellspacing       = 0pt
/*         width             = 100%*/
         borderwidth       = 2
         font              = fonts( "docFont" )
         ;

  end ;

run ;

/***********************/
options orientation             = landscape
        topmargin               = 0.75in
        bottommargin            = 0.75in
        rightmargin             = 0.75in
        leftmargin              = 0.75in
        ;

ods pdf
    file      = "C:\Users\&amp;amp;sysuserid.\Documents\My SAS Files\fpt2.pdf"
/*    style = styles.fda_rtf_tfl*/
    style     = styles.fpt
    startpage = never
    ;

title "With style( report ) = { width = 100% }" ;
proc report
   data  = sashelp.class
             ( obs = 5 )
   split = "~"
   missing
   style( report ) = { width             = 100% }
   ;

  column ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 1"
           name
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 2"
           age
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 3"
           sex
         )
         ;

  define name
       / "Name"
         style( column ) = [ cellwidth = 30% ] /* 30 */
         ;

  define age
       / "Age (Years)"
         style( column ) = [ cellwidth = 25% ] /* 55 */
         display
         ;

  define sex
       / "Sex"
         style( column ) = [ cellwidth = 25% ] /* 80 */
         ;

run ;

ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this test template, I commented out the WIDTH option, but I applied it in the REPORT statement.&amp;nbsp; I then ran the same code again with the STYLE( COLUMN ) option commented out.&amp;nbsp; &amp;nbsp;I arrive at the following pdf:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fpt.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78175i14E7F96244C996D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="fpt.jpg" alt="fpt.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I eliminate the space (breaks) in the lines?&amp;nbsp; Another issue is that using the inline style for the header over groups of columns is that the underlines of adjacent headers touch.&amp;nbsp; One program created an empty column via a dummy variable of one blank space.&amp;nbsp; We are not experience such issues in RTF output, so we may just start converting them and I have started learning the ODS DOCUMENT destination and the&amp;nbsp;DOCUMENT procedure, but the style will still be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our ultimate client is the FDA and other RAs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 22:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-PDF-REPORT-style-issue-broken-lines/m-p/848436#M335442</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2022-12-07T22:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS PDF REPORT style issue, broken lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-PDF-REPORT-style-issue-broken-lines/m-p/848520#M335463</link>
      <description>&lt;P&gt;Adding this line " style(header) = { cellspacing=0 } " in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf
    file      = "C:\temp\fpt2.pdf"
/*    style = styles.fda_rtf_tfl*/
    style     = styles.fpt
    startpage = never
    ;
ods escapechar='`'; /*&amp;lt;------------*/
title "With style( report ) = { width = 100% }" ;
proc report
   data  = sashelp.class
             ( obs = 5 )
   split = "~"
   missing
   style( report column header) = { outputwidth = 100%    
    style(header) = {  cellspacing=0 }     /*&amp;lt;------------*/
   ;

  column ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 1"
           name
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 2"
           age
         )
         ( "`S={ borderbottomcolor = black
                 borderbottomwidth = 1pt
                 borderleftstyle   = none
                 borderrightstyle  = none
               }Group 3"
           sex
         )
         ;

  define name
       / "Name"
         style( column ) = [ cellwidth = 30% ]  /*30 */  
         ;

  define age
       / "Age (Years)"
         style( column ) = [ cellwidth = 25% ] /* 55 */
         display
         ;

  define sex
       / "Sex"
          style( column ) = [ cellwidth = 25% ] /*80 */
         ;

run ;

ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1670499792635.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78191iFA80FD69868EFAB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1670499792635.png" alt="Ksharp_0-1670499792635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 11:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ODS-PDF-REPORT-style-issue-broken-lines/m-p/848520#M335463</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-08T11:43:28Z</dc:date>
    </item>
  </channel>
</rss>

