View previous topic :: View next topic
|
Author |
Message |
reeba
New User
Joined: 14 Mar 2007 Posts: 2 Location: kerala
|
|
|
|
hello
how can we convert a number or digit to words.ie.123 as one hundred and twenty three.how can we do this by using COBOL code.if anyone knew the answer please reply me.
thanks
reeba |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yes, it can be done, but how is one of the classic COBOL training exercises given to students for decades....
It is done with several arrays and a little subscripting, try it and let us know if you have any problems or specific questions. |
|
Back to top |
|
|
reeba
New User
Joined: 14 Mar 2007 Posts: 2 Location: kerala
|
|
|
|
Thank you for your reply.is there any function for that? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
No, other than STRING for combining the various array elements without all the trailing spaces...... |
|
Back to top |
|
|
|