BookmarkSubscribeRSS Feed
devarayalu
Fluorite | Level 6

Can any one help why the indent attribute is getting effected?

ods rtf file='D:\Clin-Dem\HCC\New Folder\1.rtf' style=styles.journal;

PROC REPORT DATA=sasuser.fianls nofs  out=one split='`'

    style=[frame=hsides rules=groups]

    style(column)=[cellwidth=1 in protectspecialchars=off just=c]

    style(header)=[font_weight=bold protectspecialchars=off]

;

    COLUMN order1 order2 text trt, value last;

       DEFINE order1/ group noprint;

       DEFINE order2/ group noprint;

       DEFINE text/ group'Charactaristic' style=[cellwidth=3 in just=l pretext='\li600 '];

       DEFINE TRT/ across FOrMAT=treatment.'' ;

       DEFINE value/ group '';

       DEFINE last/ computed noprint;

compute before order1 / style=[font_weight=bold];

line @1 '';

line @1 order1 order.;

temp=order1;

endcomp;

compute last ;

        if temp=1 and order2 = 7 then call define(_row_, 'style', 'style=[pretext="\line "]');

  endcomp;

run;

ods rtf close;

Thank you in advance

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  This is an instance where seeing ALL your data is going to be needed to understand what the values of TEMP and ORDER2 are and how they might possibly interact and negate the \li600 that you pass in as a style attribute.

  The only thing I notice is that you do not specify the style override entirely correct. Usually, in a DEFINE statement, PROC REPORT expects to see a location in parentheses, like this:

DEFINE text/ group'Charactaristic' style(column)=[cellwidth=3 in just=l pretext='\li600 '];

  I would suggest that you open a track with Tech Support for help with this issue. To open a track with Tech Support, fill out the form at this link:

http://support.sas.com/ctx/supportform/createForm

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!

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