The SAS Output Delivery System and reporting techniques

Compute After does not work

Reply
N/A
Posts: 0

Compute After does not work

Why does this compute after not work. All I get is the word 'TOTAL'.

COMPUTE BEFORE GROUP_TYPE;
HOLD_GROUP = GROUP_TYPE;
ENDCOMP;

BREAK AFTER GROUP_TYPE /SUMMARIZE SKIP DOL DUL;

COMPUTE AFTER GROUP_TYPE;
ACCT= 'TOTAL'||TRIM(HOLD_GROUP);
ENDCOMP;
SAS Super FREQ
Posts: 8,742

Re: Compute After does not work

Hi:
Just a guess. ACCT has a length of $5 or $6??? When you use this technique to put special text at the break, you are limited to the length of the variable on the left-hand side of the = sign.

You may find the answer in this Advanced Proc Report Topics paper:
http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf

...or one of the techniques is shown here:
http://support.sas.com/faq/043/FAQ04326.html

There are several other methods for addressing this length limitation with PROC REPORT (user-defined format, changing the length of the original variable). If you have an immediate need, you could contact Tech Support for help with any of these techniques.

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