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
SAS Super FREQ

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;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 955 views
  • 3 likes
  • 2 in conversation