Search notes:

SAS format: words

The wordsN format can be used to spell numbers, that is to transform a number into its corresponding text (1 becomes one, 2 becomes two etc.)
data tq84_nums_spelled;

/* The words format spells numbers */

  attrib num     format =       8.
         spelled format = words50.;

  do num=0 to 1000;
     spelled = num;
     output;
  end;

run;
Github repository about-SAS, path: /programming/formats-informats/words/spell-numbers.sas

See also

informats and formats
Perl module Number::Spell

Index