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 Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm

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