BookmarkSubscribeRSS Feed
Jaime
Fluorite | Level 6

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;

2 REPLIES 2
Jaime
Fluorite | Level 6

Disregard.

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

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

art297
Opal | Level 21

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1145 views
  • 0 likes
  • 2 in conversation