BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jedrzej
Obsidian | Level 7

hi,

i want allign my data to get proper proc report output

data have

Jedrzej_0-1615553046812.png

so every row in this case shoud be alligned to 217/336 (64.6%)

thank you for your help

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Have you created some sort of character variable to hold a composite value like that?

If so, the only possibility of getting this to work at all would involve displaying the value with a fixed width font like Courier or SAS Monospace and then inserting blanks into the data value.

 

If not, then show your proc report code.

View solution in original post

3 REPLIES 3
ballardw
Super User

Have you created some sort of character variable to hold a composite value like that?

If so, the only possibility of getting this to work at all would involve displaying the value with a fixed width font like Courier or SAS Monospace and then inserting blanks into the data value.

 

If not, then show your proc report code.

Jedrzej
Obsidian | Level 7
yes, it's a concatenated char variable, so maybe I should fixed it in a dataset before ? i'm not good with proc report
PaigeMiller
Diamond | Level 26

Agreeing with @ballardw . You seem to have missed his point, character strings cannot be aligned on decimal points or parenthesis unless you use a fixed width font like Courier. Where the character string is created (data set or PROC REPORT or anywhere else) is irrelevant to this problem.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1372 views
  • 1 like
  • 3 in conversation