The SAS Output Delivery System and reporting techniques

How to control distance between different items in output from the SAS ODS PDF ?

Reply
Contributor
Posts: 57

How to control distance between different items in output from the SAS ODS PDF ?

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.

SAS Super FREQ
Posts: 8,717

Re: How to control distance between different items in output from the SAS ODS PDF ?

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

Contributor
Posts: 57

Re: How to control distance between different items in output from the SAS ODS PDF ?

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;

Ask a Question
Discussion stats
  • 2 replies
  • 335 views
  • 3 likes
  • 2 in conversation