Hi, i want to merge or add row under column header with some constant value for all my 5 column
i got his
but i want like this
can someone help?
What happens if you remove this?
compute before order;
line '';
endcomp;
or change it to
compute after order;
line '';
endcomp;
We'd need to see your code in order to answer your question.
You might also want to look at the %TABLEN macro. https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-...
i have created seperate dataset with value 'n (%)' and stack them
proc report data=final nowd headskip headline split='*'
style = {outputwidth=100% } spacing=1 wrap;
column order newvar trt_1 trt_2 trt_3 trt_4 trt_9;
define order/ order noprint ;
define newvar/display '' style(column)={asis=on};
define trt_1/ display "Placebo * (N=&trt1)" center;
define trt_2/ display "Tanezumab 5 * mg *(N=&trt2)" center;
define trt_3/ display "Tanezumab 10 * mg *(N=&trt3)" center;
define trt_4/ display "Naproxen 500 * mg BID * (N=&trt4)" center;
define trt_9/ display "Total * (N=&trt9)" center;
compute before order;
line '';
endcomp;
compute after _page_;
line'';
endcomp;
run;
What happens if you remove this?
compute before order;
line '';
endcomp;
or change it to
compute after order;
line '';
endcomp;
thank you so much
it worked
compute after worked
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 lock in 2025 pricing—just $495!
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.