MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Numeric to Text (Legal Amount)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Thu Apr 06, 2006 6:13 pm    Post subject: Numeric to Text (Legal Amount) Reply with quote

Does anyone have a routine or query that will do the following?

Recieve a s9(09)v99 input and pass the 'Legal Amount' back.

Example would be:
In 92122
Out Nine-Hundred -Twenty-One Dollars and 22/100
or
Out Nine-Hundred-Twenty-One Dollars and 22 Cents

In 8933
Out Eighty Nine Dollars 21/100
or
Out Eighty Nine Dollars and 21 Cents

In 234355
Out Two Thousand Three Hundered Forty Three Dollars and 55/100
or
Out Two Thousand Three Hundered Forty Three Dollars and 55 Cents
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Apr 07, 2006 5:08 am    Post subject: Reply with quote

NASCAR9,

I don't think it is possible to achieve the desired results using SQL. You may need an UDF. However there is a cobol pgm to do it. Are you interested?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Fri Apr 07, 2006 9:23 am    Post subject: Reply with quote

Thanks Kolusu,
We a have many check programs here at work. All have some COBOL routine that produces the 'Legal Amount'. I searched and did not find a standard SQL Function, LE, or COBOL routine. Was hoping I missed something.

When you say COBOL PGM, are you referring to an IBM supplied routine or custom code?
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Apr 07, 2006 9:47 am    Post subject: Reply with quote

Quote:

When you say COBOL PGM, are you referring to an IBM supplied routine or custom code?


Custom code. I never knew IBM supplied a Routine to do the conversion

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group