Hello Everyone, I am preparing my first ever pdf file 🙂 Below are a few questions I have if you could please help out!! I am grouping based on metric..(I could group based on metric AND dimension1 if that helps) Dimension1 has values Total Total_split1 Total_split2 Total_SplitA Total_SplitB Total_SplitC Total_SplitD 1.) I want a line before Total_SplitA but only for the rows under the "count" and "Region" columns..Is there a way to achieve this? 2.) How can I bold the Total row values? 3.) For every group in the metric I want a line which I obtain using (compute dimension1; if dimension1 = 'Total' then call define(_row_,'style','style=[bordertopcolor=black bordertopwidth=1]'); endcomp; ) Is there a better way to do this? Below is my code: ods pdf file="&report_dir/PDF_file_draft1.pdf" notoc; proc report data=FILE1 headline headskip style(report)=[cellspacing=0 cellpadding=0.5 frame = boxrules=groups font=(Arial, 7pt, bold) WIDTH=100%] style(header)=[foreground=white background=black font=(Arial, 7pt, bold) borderbottomwidth=0 bordertopwidth=0 borderrightwidth=0 borderleftwidth=0 bordercolor=black NOBREAKSPACE=ON ] style(column)=[font=(Arial, 7pt) foreground=black background=CXFFFFFF JUST = C VJUST=C bordertopwidth=0 borderrightwidth=0 borderleftwidth=0 bordercolor=white ]; Columns metric dimension1 ("Count" Col_A Col_B Col_C Col_D Col_E Col_F) ("Region" Col_X Col_Y Col_Z); define metric/group order=data; define dimension1 /display ; define Col_A/display format = comma12.; define Col_B/ display format = percentn12.1; define Col_C/display format = percentn12.1 ; define Col_D/format = comma12. ; define Col_E/display format = comma12.; define Col_F/display format = comma12.; define Col_X/display format = comma12.; define Col_Y/display format = dollar12.2; define Col_Z/display format = dollar12.; compute dimension1; if dimension1 = 'Total' then call define(_row_,'style','style=[bordertopcolor=black bordertopwidth=1]'); endcomp; compute Col_A; call define(_COL_,'style','style=[borderleftcolor=black borderleftwidth=1]');endcomp; compute Col_X; call define(_COL_,'style','style=[borderleftcolor=black borderleftwidth=1]');endcomp; run; ods pdf close; Thank you 🙂 Below is the my expected format: Total = Total_Split1 and Total_Split2 Total=Total_SplitA+Total_SplitB+Total_SplitC+Total_SplitD (split in a different way)
... View more