BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
gzr2mz39
Quartz | Level 8

tot_per=catx("% ,",per_task,tot) where per_task and tot are both numeric values.
I'm trying to create the following table:

proc report data=task_groups1 nowd contents="Claims" out=test

  style(header)=[font_weight=bold background=CX90D9D7];

  options missing='0';

  column task_grp bu, (tot_per);

  define task_grp / group 'Task' order=data;

  define bu / across '';

  define tot_per / '' style(column)={just=c};
run;

How do I fix the following error?
"ERROR: There is no statistic associated with tot_per."

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Data would be helpful.

I think this is a case where you need a dummy variable, something like...

column task_grp bu, (tot_per) dummy;

define dummy / noprint;

I could test this if you supplied some data.

View solution in original post

5 REPLIES 5
data_null__
Jade | Level 19

Data would be helpful.

I think this is a case where you need a dummy variable, something like...

column task_grp bu, (tot_per) dummy;

define dummy / noprint;

I could test this if you supplied some data.

gzr2mz39
Quartz | Level 8

That works.

Will a compute block allow me to show blank cells as 0%, 0?

Or is there a better way?

Thank you.

data_null__
Jade | Level 19

I would format the character data cells to look exactly like I want them to look, in the data step where you create tot_per. 

gzr2mz39
Quartz | Level 8

I don't have missing information in the data step. Only when proc report creates the table do I have blank cells due to combinations being created that don't exist in the data step. I could manually create these combinations in the data step, but that would be quite a bit of manual coding.

data_null__
Jade | Level 19

It wont be to hard to create the "missing" cells.  I think that is easier that using CALL DEFINE espically on an across variable.  Show some data.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 5 replies
  • 3968 views
  • 1 like
  • 2 in conversation