BookmarkSubscribeRSS Feed
stan
Quartz | Level 8

I found out that there is an option (I can't find it now unfortunately) controlling the space above an output table (the default value is 1 there). What is the option ? Is there any way to control more precisely  (in case of unsatisfactory results with that 'discrete' option)?

Thank you.

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi:

  Without any context for your question, it is hard to make a constructive suggestion. Your use of the "discrete" option implies that you might be using SAS/GRAPH for the creation of graphic output with ODS PDF. I'm not sure what option you are referencing to control the space ABOVE an output table. There is one way with all procedures using a TITLE statement (or not); there is another way with PROC REPORT, PROC PRINT and PROC TABULATE, using some STYLE options in addition to the TITLE statement; and there is yet another way if you are using Graph procedures.

  So can you post a sample program, real working code that illustrates your question. Even if you can't post your data, you should be able to replicate a simple table (or graph) using one of the SASHELP datasets (SASHELP.CLASS, SASHELP.CARS, SASHELP.HEART or SASHELP.SHOES).

cynthia

stan
Quartz | Level 8

Thank you for your reply. Yes, sure, here it is :

ODS PDF FILE = "D:/HowToControlSpaces.pdf" COLUMNS = 2 NOTOC STARTPAGE = NO;

ODS NOPROCTITLE;

DATA TEST;

INPUT Exp $ Cond $ Val;

datalines;

14 AA 5

15 AA 3

14 BB 15

15 BB 7

14 CC 16

15 CC 16

14 DD 15

15 DD 17

14 EE 11

15 EE 17

;

RUN;

PROC PRINT DATA = TEST; RUN;

ODS PDF TEXT = "How to control the distances / spaces above and below this title?";

ODS PDF TEXT = "How to widen them?";

ODS PDF TEXT = "How to make them more narrow?";

          

PROC GLIMMIX DATA = TEST;

VALUEp = Val/100;

CLASS Exp Cond;

MODEL VALUEp = Cond / DIST = BINOMIAL DDFM = KENWARDROGER;

RANDOM Cond / RESIDUAL SUBJECT = Exp TYPE = CS;

LSMEANS Cond ;

ODS SELECT ConvergenceStatus;

RUN;

ODS PDF CLOSE;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1544 views
  • 3 likes
  • 2 in conversation