BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Cristina_inet
Fluorite | Level 6

Hello everyone,
We are generating a proc report and we need to make the table margins thicker,
as shown in the following image.

 

Cristina_inet_0-1693564920673.png


How could it be done?
Thank you very much for the help.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

In PROC REPORT, you can specify the border width of whatever cells you want.


Depending on what you want, you can use something like the borderbottomwidth=3 and bordertopwidth=3 and borderleftwidth=3 and borderrightwidth=3 options, picking bigger numbers to make the thickness bigger.

 

So, partial PROC REPORT code, I have a variable named TOTAL_BACKEND and if the value is greater than 7000, I can cause the widths of the entire row  to be thicker (or I can select to increase the widths of just the cell borders).

 

compute total_backend;
    if total_backend>=7000 then call define(_row_,'style','style={bordertopwidth=3 borderbottomwidth=3}');
endcompute;

 

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I'm not sure I understand. What margins do you mean? Do you mean you need to make the lines in certain places thicker?

--
Paige Miller
Cristina_inet
Fluorite | Level 6

Yes.

make the lines that look black thicker than the rest.

PaigeMiller
Diamond | Level 26

In PROC REPORT, you can specify the border width of whatever cells you want.


Depending on what you want, you can use something like the borderbottomwidth=3 and bordertopwidth=3 and borderleftwidth=3 and borderrightwidth=3 options, picking bigger numbers to make the thickness bigger.

 

So, partial PROC REPORT code, I have a variable named TOTAL_BACKEND and if the value is greater than 7000, I can cause the widths of the entire row  to be thicker (or I can select to increase the widths of just the cell borders).

 

compute total_backend;
    if total_backend>=7000 then call define(_row_,'style','style={bordertopwidth=3 borderbottomwidth=3}');
endcompute;

 

--
Paige Miller

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 162 views
  • 0 likes
  • 2 in conversation