I am very new to SAS and still learning so apologies if my question is simple.
I have a numeric column (this has to stay numeric) and in that column I have for example:
The issue is since I have placed the 2.1 into the mix the list now reads as follows:
Is there anyway to remove the 0s!
Thanks very much in advance
Use a 2. format. When you tell SAS to display decimals (by using a format with a number after the dot), it will do so.
If you use the 2. format, you will lose a piece: 2.1 will print as 2 instead.
Worth a try: the best3. format. For example:
format varname best3.;
I can't test it right now, but if this doesn't work I think the solution becomes more complex.
Is there some good reason that you don't want to see the zeros?
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.
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.