BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

We are using different formats like best. , percent. like these i need different fixed formats except date formats 

can you kindly let me know what are they?

4 REPLIES 4
Reeza
Super User
I have no idea what the question is here.
thanikondharish
Fluorite | Level 6
fixed formats like
ex: negparen8.


like above examples
FreelanceReinh
Jade | Level 19

Hi @thanikondharish,

 

Do you mean width specifications appended to format names?

 

When you look through the list of SAS-supplied formats you'll notice that all of them include such a w or w.d specification. Omitting them means using the default value(s). These defaults and the ranges of valid values for w (and d if any) can be found in the documentation of each format. For example, in negparen. the width and number of decimals are not really unspecified, but they default to 6 and 0, respectively. Similarly, best. is equivalent to best12. and percent. is equivalent to percent6. and percent6.0.

 

You can use w (and, if applicable, even w.d) specifications with user-defined formats as well.

Reeza
Super User
What do you mean by ‘fixed format’? That is not a term I’ve heard in reference to SAS formats in 20 years, though there are fixed format files which talk about the file structure

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