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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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