Help using Base SAS procedures

Proc Template Style for Titles

Reply
Frequent Contributor
Posts: 115

Proc Template Style for Titles

Hi,

I have a proc report preceded by 2 tiles(title1& title2). I have a background color for titles.

There seems to be a small space between the 2titles.

I am trying to eliminate this using the SystemTitleAndFooterContainerand TitleAndNoteContainer class of the style I am using. Did not work.

Below is my proc template and proc report.

                                                                                                                                                                                                                          proc template;

    define style duals;

        parent=    styles.plateau;

        style GraphColors from graphcolors /

            "gdata1"=cx3230b2

            "gdata2"=cxb2309e           

            "gcdata1" = cx000000

            "gcdata2" = red

            "gcdata3" = cx000000

            "gramp3cend" = cxaa081b                                             

            "gramp3cneutral" = cx000000                                         

            "gramp3cstart" = cx1ba808;

        style GraphFonts from GraphFonts                                                     

            "Fonts used in graph styles" / 

            'GraphTitleFont' = (", ",8pt,bold)

            'GraphLabelFont' = (", ",8pt)

            'GraphValueFont' = (", ",8pt)

            'GraphDataFont' = (", ",7pt)

            'GraphAxisFont' = (", ",6pt)

        ;

        class table, header, data/

            /*backgroundcolor=white             */

            color=black

            fontfamily=" Arial, Verdana"

            fontsize=8pt ;

        class body/

            backgroundcolor=white

            color=black

            fontfamily=" Arial, Verdana"

            fontsize=8pt

            borderstyle=none pagebreakhtml=_undef_;

        class SystemTitleAndFooterContainer /

            padding=1

            rules = NONE

      frame = VOID

      width = 100%

      padding = 0

      borderspacing = 0         backgroundcolor=#f5f5f5

      borderwidth = 0 cellspacing=0 ;

   class TitleAndNoteContainer /

      rules = NONE

      frame = VOID

      width = 100% backgroundcolor=#f5f5f5

      padding = 0

      borderspacing = 0

      borderwidth = 0;

    class systemtitle/

           fontfamily=" Arial, Verdana"

                     backgroundcolor=#f5f5f5

           fontweight=bold

           fontsize=8pt borderwidth=0   ;

    end;

run;

%let _ODSSTYLE=duals;

%let _ODSOPTIONS=body=_webout (title='');

%let _ODSDEST=tagsets.htmlpanel;

%let _ODSOPTIONS=options(  embedded_titles = 'yes'  /*bylabels='no' *panelborder='1'*/);

%stpbegin;

ods tagsets.htmlpanel event=row_panel(start)  ;

ods tagsets.htmlpanel event=column_panel(start);

title1 'General Production';

title2 "As of %sysfunc(date(),worddate.)";

proc report data=sashelp.cars ;

run;

Frequent Contributor
Posts: 115

Proc Template Style for Titles

Disregard.

I asked the question a year ago and was answered by Cynthia. Thanks Cynthia.

http://communities.sas.com/message/37982#37982

PROC Star
Posts: 7,356

Proc Template Style for Titles

But what was the answer?  The other post seemed to be about colors and the appearance of lines, not about reducing space between title lines.

I was thinking that possibly bodytitle might give you more control, but I'm interested in discovering what the solution is.

Art

Ask a Question
Discussion stats
  • 2 replies
  • 171 views
  • 0 likes
  • 2 in conversation