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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1726 views
  • 0 likes
  • 3 in conversation