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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.