🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 01-30-2020 10:28 AM
(2349 views)
dear all
greetings of the day
i have to convert number into description of the number in text form by using SAS code
for example,
number | description |
1 | one |
2 | two |
3 | |
. | . |
. | . |
. | . |
50 | fifty |
100 | hundred |
thanks in advance
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can try this:
NB: The WORDSw. format converts numeric values to their equivalent in English words.
data want;
do number=1 to 100;
description=put(number,words100.);
output;
end;
run;
- Tags:
- english words
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data have;
input number;* description;
cards;
1 one
2 two
;
data want;
set have;
description=put(number,words100.);
run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can try this:
NB: The WORDSw. format converts numeric values to their equivalent in English words.
data want;
do number=1 to 100;
description=put(number,words100.);
output;
end;
run;
- Tags:
- english words
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content