Hi,
my question is hard to descibe. But ill try it:
With a proc-tabulate-step its possible, to use a variable twice: First, I sum the three values of LFBP_erwtyp3 (black frame, 01_ET, 02_EL, 03_NEP). Afterwards I sum the same variable, but differentiated by the Variable LF_Typ28 and its values (red frame).
My Question: I tried to create this table structure also within a proc-report step (cause i want to learn it). But: Im not able to get both results in one table. For example, with following code...
proc report data=test16;
column LF_Typ28 LFBP_erwtyp3 HRF_P_Sn;
define LFBP_erwtyp3 / group;
define LF_Typ28 / group;
define HRF_P_Sn / analysis;
run;
...i get the content of the red frame. But how can I add the content of the black frame? Or is this only doable with proc tabulate?
Thank you!
Thank you!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.