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; |
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...
Because 20 is sufficient in this example
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.