BookmarkSubscribeRSS Feed
msecic
Calcite | Level 5

I want to left justify the column headers for the variables 'characteristic' and 'stat_cat_'.  As you can see from my output below, this is NOT happening - see my code after the output.  Please help!

Here's my output:

             Disposition                             ValueGroup AGroup BTotal
(n=7)(n=6)(n=13)
RandomizedYes7 (100.0 %)6 (100.0 %)13 (100.0 %)
Prematurely DiscontinuedNo4 (57.1 %)3 (50.0 %)7 (53.8 %)
Yes3 (42.9 %)3 (50.0 %)6 (46.2 %)
Enrolled in Next OneNo1 (14.3 %)1 (16.7 %)2 (15.4 %)
No2 (28.6 %)1 (16.7 %)3 (23.1 %)
Missing Values4 (57.1 %)4 (66.7 %)8 (61.5 %)
Reason Discontinued:Adverse Event0 (0.0%)1 (33.3 %)1 (16.7 %)
Ulcer 2 (66.7 %)0 (0.0%)2 (33.3 %)
Lost to follow-up1 (33.3 %)0 (0.0%)1 (16.7 %)
Other0 (0.0%)1 (33.3 %)1 (16.7 %)
0 (0.0%)1 (33.3 %)1 (16.7 %)

Here's my code:

/** RTF **/

%RTFOPTNS;

%OUTFILE(NAME=T1_1_SubjectDisposition); ** Name the Output file ** ;

OPTION MISSING=' ';

ODS LISTING CLOSE;

ODS RTF FILE=RTFFILE STYLE=STYLES.RTFSTYLE BODYTITLE;

ODS NORESULTS;

PROC REPORT DATA=final NOWD HEADLINE HEADSKIP SPLIT='|' SPACING=2 MISSING ;

COLUMN characteristic stat_cat_  var1 var2  var99;

    DEFINE characteristic/DISPLAY WIDTH=15 left "Disposition"

            STYLE(COLUMN)=[CELLWIDTH=1.25IN ];

    DEFINE stat_cat_/DISPLAY WIDTH=15 left "Value"

            STYLE(COLUMN)=[CELLWIDTH=3.75IN ];

    DEFINE var1/DISPLAY WIDTH=15 CENTER "PluroGel N|(n=&grpPRand.)"

            STYLE(COLUMN)=[CELLWIDTH=1.0IN ];

    DEFINE var2/DISPLAY WIDTH=15 CENTER "Vehicle|(n=&grpPRand.)"

            STYLE(COLUMN)=[CELLWIDTH=1.0IN ];

    DEFINE var99/DISPLAY WIDTH=15 CENTER "Total|(n=&grpTotRand)"

            STYLE(COLUMN)=[CELLWIDTH=1.0IN ];

    %RTFTITLES(t3=Table 14.1.1 Subject Disposition);

RUN;

OPTIONS MISSING='.';

FOOTNOTE; TITLE;

ODS RTF CLOSE;

ODS pdf CLOSE;

ODS LISTING ;

PROC PRINTTO;

RUN;

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  It is better to post your question in only 1 forum and not in multiple forums. I have posted an answer in the other forum for ODS.

cynthia

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!

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
  • 1 reply
  • 410 views
  • 0 likes
  • 2 in conversation