Help using Base SAS procedures

why the text variable in the cell which is defined in compute block of last is getting effected, indent attribute was changed for that cell in PROC REPORT - shown as right circle in the image?

Reply
Contributor
Posts: 49

why the text variable in the cell which is defined in compute block of last is getting effected, indent attribute was changed for that cell in PROC REPORT - shown as right circle in the image?

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

SAS Super FREQ
Posts: 8,743

Re: why the text variable in the cell which is defined in compute block of last is getting effected, indent attribute was changed for that cell in PROC REPORT - shown as right circle in the image?

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

Ask a Question
Discussion stats
  • 1 reply
  • 130 views
  • 0 likes
  • 2 in conversation