Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Convert a number or digit to words

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Convert a number or digit to words
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 1:10 pm    Post subject:
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    Post subject: Re: cobol:digit to string conversion
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 27, 2007 4:36 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us