Here is a simple routine that works. Customise it to suit your needs.

*-----------------------------------------------------------------------------
* <Rating>0</Rating>
*-----------------------------------------------------------------------------
SUBROUTINE CONV.NUM.TO.WORDS

$INSERT I_COMMON
$INSERT I_EQUATE

AMT = ''
AMT.WORDS = ''
LANGUAGE = 'GB'
ERR = ''

AMT = O.DATA
CALL DE.O.PRINT.WORDS(AMT,AMT.WORDS,LANGUAGE,'','',ERR)
CONVERT '*' TO ' ' IN AMT.WORDS

AMT.WORDS = O.DATA

END

Regards
Concern

On May 13, 4:11 pm, VK <[email protected]> wrote:
> HI,
> DE.WORDS is really an application...
>
> If we're talking about local development, the rule #1 is: never ever
> call a core T24 subroutine unless it's described in "Subroutine
> Guide.pdf". Come next release - it might not exist anymore... even it
> still does - you'll never know what it exactly does now (unless you've
> got the core source which you probably haven't).
>
> Anyway it's more fun to write a routine yourself :)
>
> VK
>
> On May 13, 12:07 pm, Mohankumar Balasubramaniam
>
>
>
>
>
> <[email protected]> wrote:
> > Hi
>
> > If you need assistance please find the attachment for sample routine which I
> > did to convert the amount to words.
>
> > Regards,
> > Mohan
>
> > On Thu, May 13, 2010 at 12:31 AM, Srinivas <[email protected]>wrote:
>
> > > Hi,
>
> > > i think DE.WORDS doesnt accept any arguements , so its throwing out the
> > > error message.
>
> > > User the subroutine DE.O.PRINT.WORDS with the same arguements as you did. 
> > > I
> > > read in one of the group that this routine converts amount to words. Hope 
> > > it
> > > might help you.
>
> > > On 12 May 2010 18:00, Despina <[email protected]> wrote:
>
> > >> Hi all,
>
> > >> I've been trying to use DE.WORDS routine but I get the error 'called
> > >> with incorrect arguments'.
> > >> According to my experience so far, this error has to do with the
> > >> parameters used when calling the routine.
>
> > >> The T24 documentation says 'Arguments: IN.AMT, OUT.AMT, LINE.LENGTH,
> > >> NO.OF.LINES,ERR.MSG'
> > >> and that is why I'm using 5 parameters.
> > >> Has anyone else used the DE.WORDS routine and knows how it can be
> > >> used?
>
> > >> ERR.MSG = ''
> > >> CALL DE.WORDS(DEBIT.AMT,MY.VALUE,'','',ERR.MSG)
> > >>  12 MAY 2010 13:32:57  USER (04 FEB) DESPINA.1         [67,6]  TXN
> > >> COMPLETE     ** Error [ SUBROUTINE_PARM_ERROR ] **
> > >> 'SUBROUTINE DE.WORDS' called with incorrect arguments , Line     1 ,
> > >> Source DSF.TT.UBD.LWITHLACC.AMTWORD
> > >> Trap from an error message, error message name = SUBROUTINE_PARM_ERROR
> > >> Source changed to /t24_test_env10/bnk/bnk.run/USB.BP/
> > >> DSF.TT.UBD.LWITHLACC.AMTWORD
> > >> 0001
>
> > >> *--------------------------------------------------------------------------­---
>
> > >> Thanks a lot
> > >> Despina
>
> > >> --
> > >> Please read the posting guidelines at:
> > >>http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > >> IMPORTANT: Type T24: at the start of the subject line for questions
> > >> specific to Globus/T24
>
> > >> To post, send email to [email protected]
> > >> To unsubscribe, send email to [email protected]
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/jBASE?hl=en
>
> > > --
> > > Regards,
>
> > > SrinivasYadav. G
> > > Mobile No: 00966 - 540625165
>
> > >   --
> > > Please read the posting guidelines at:
> > >http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > > IMPORTANT: Type T24: at the start of the subject line for questions
> > > specific to Globus/T24
>
> > > To post, send email to [email protected]
> > > To unsubscribe, send email to [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/jBASE?hl=en
>
> > --
> > Please read the posting guidelines 
> > at:http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > IMPORTANT: Type T24: at the start of the subject line for questions 
> > specific to Globus/T24
>
> > To post, send email to [email protected]
> > To unsubscribe, send email to [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/jBASE?hl=en
>
> >  AMT.IN.WORDS
> > 1KViewDownload
>
> --
> Please read the posting guidelines 
> at:http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions specific 
> to Globus/T24
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/jBASE?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to