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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 1036 views
  • 0 likes
  • 3 in conversation