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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 673 views
  • 0 likes
  • 2 in conversation