IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Convert a number or digit to words


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
reeba

New User


Joined: 14 Mar 2007
Posts: 2
Location: kerala

PostPosted: Tue Mar 27, 2007 12:02 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 1:10 pm
Reply with quote

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
View user's profile Send private message
reeba

New User


Joined: 14 Mar 2007
Posts: 2
Location: kerala

PostPosted: Tue Mar 27, 2007 4:00 pm
Reply with quote

Thank you for your reply.is there any function for that?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 4:36 pm
Reply with quote

No, other than STRING for combining the various array elements without all the trailing spaces......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top