BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
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

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
  • 689 views
  • 0 likes
  • 2 in conversation