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

Hi all,

In my data set, I have a variable 'decile' with values 1 through 10 based on a variable 'score'. I need to create another variable 'mini-decile' that divides each decile again into 10 equal parts or deciles based on the score (descending).

Can somebody help me how to write the code?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
stat_sas
Ammonite | Level 13
2 REPLIES 2
stat_sas
Ammonite | Level 13

Try proc rank.

Reeza
Super User

That sounds like percentiles. Use Proc Rank with 100 groups or proc univariate.

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
  • 2 replies
  • 1893 views
  • 3 likes
  • 3 in conversation