BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

What is the purpose of writing "default=20" in this example of multilabel format?

 

What is the purpose of writing "notsorted"?

 

If I want that order of rows in summary report will be in same order as left side of proc format

('Strong approval','Weak Approval','Approval','Weak Decline','Strong Decline','Decline') then should I add the option "notsorted"?

 

proc format library=work;
value appr (default=20 multilabel notsorted)
1-2  = 'Strong approval'
3-6  = 'Weak Approval'
1-6  = 'Approval'
7-8  = 'Weak Decline'
9-10 = 'Strong Decline'
7-10 = 'Decline'
;
run;
3 REPLIES 3
PaigeMiller
Diamond | Level 26

This is the exact situation, when you want to know what a certain option does, where you should consult the documentation. SAS has done a great job of explaining every command and every option. Here is the PROC FORMAT documentation: https://documentation.sas.com/?docsetId=proc&docsetVersion=9.4&docsetTarget=p1upn25lbfo6mkn1wncu4dyh...

--
Paige Miller
Ronein
Onyx | Level 15
Thank you.
What is the logic that in this example they
Choose default=20 and not default =30?
PaigeMiller
Diamond | Level 26

Because 20 is sufficient in this example

 

 
--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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