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

I have a report i'm creating that displays columns that have decimal data that is not even in length.

For example

11.1111

2222.2222

3.3333

I want to know how I can have it display where it right justifies the data

    11.1111

2222.2222

     3.3333

I tried using formats which helped in some other scenarios but not this one.

I'm currently just doing a put @1 decData

I'm sending this to a text file using a filename statement.

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

Jerry,

When I used it I ended up with a file that looked as follows:

    11.1111

  2222.2222

     3.3333

View solution in original post

5 REPLIES 5
art297
Opal | Level 21

How about:   put @1 decData 10.4;

jerry898969
Pyrite | Level 9

Art,


Thank you for your reply.

I tried using that format and it still doesn't line up. 

I looking at maybe using the z format and have it fill the difference with zeros.

art297
Opal | Level 21

Jerry,

When I used it I ended up with a file that looked as follows:

    11.1111

  2222.2222

     3.3333

OS2Rules
Obsidian | Level 7

He might be using a proportional font to view the ouput - this may cause the results to not line up visually.  See what happens when you use a fixed pitch font.

jerry898969
Pyrite | Level 9

Art,

I tried it again and it did work like I need it too.

Thank you

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 2116 views
  • 0 likes
  • 3 in conversation