BookmarkSubscribeRSS Feed
HanaR
Fluorite | Level 6

Hello,

I have a problem with line-up in ODS PDF output using proportional font (Arial); I know I have to use monospace font to do so;

The problem is that the requirement from the users indicates that the developers must use "ARIAL" only in that report.

I suppose I could create a dynamic format for that particular column, which displays the name of the state and followed by dots (below is the example.

But, I am wondering if there is any way in ODS to line-up the value in PDF file.

example:

monospaceArial
Alabama .........Alabama ........
California ......California .........

For state_name column, it is 100 bytes long and contains "name of the state" and "dots(.)"

In proc report, the column is 1.75 in.

the code is attached. the problem area is "COMPUTE" area; with SAS Monospace, it shows uniformed spacing.

Thanks.

Hana

3 REPLIES 3
Tom
Super User Tom
Super User

What is the purpose of the dots?

Cynthia_sas
Diamond | Level 26

Hi:

  Is this is a duplicate posting? This question has been answered in a different post (https://communities.sas.com/message/158378#158378).  Is there a new development to the other question or to the answer?

cynthia

HanaR
Fluorite | Level 6

Hello,

Yes it is; I posted this earlier.  Sorry about that.

The dots are for filling in the column of the state name; e.g. the column is char(50). so state_name = "Florida ......." or "Texa ......."

Using Arial font does not meet the clients' satisfaction; however, Ms. Cynthia's explanation gave them the reason to look at other wasy to produce the reports.  Many thanks to Ms. Cynthia.

Best Regards,

Hyunjoo Reed

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1759 views
  • 0 likes
  • 3 in conversation