gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] editing numeric data from alphanumeric strings


From: Domain Admin
Subject: Re: [open-cobol-list] editing numeric data from alphanumeric strings
Date: Sun, 11 Jan 2009 10:31:48 -0500

Michael,

We have a repository set up on add1 for extra libraries, tools, extensions and applications written in
OpenCobol, if you are interested hit us up sometime at:

http://www.add1tocobol.com/chat.php

Of course you can look at my sig for more info.

Kind Regards,

On Fri, Jan 9, 2009 at 2:28 PM, Michael <address@hidden> wrote:
Good stuff to know, and I do appreciate your input, I may even change my
ways someday. ;-)

Thanks,
Mike.


Bill Klein wrote:
> The NUMVAL functions (NumVal, NumVal-C, and (new) NumVal-F) do not TELL you
> the number of decimal points, but they do support input with any number of
> decimal points that would be valid in a COBOL data item (i.e. 18 in older
> COBOL and 31 digits in current COBOL).
>
> You can get the decimal part of a numeric-edited input field by using a
> combination of NumVal functions and INTEGER-OF functions.  This would allow
> you to "move" the output of a combination of functions to a
>    Pic SV9(31)
> receiving item to get all (and just) the decimal portions of an input field.
>
> P.S.  I understand that there are MANY "de-editing" routines around -
> especially for shops that started using '74 or earlier COBOL.  I was only
> pointing out that OpenCOBOL includes the intrinsic function(s) to do most of
> what is wanted by such routines.
>

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list



--
Joseph James Frantz
(Aoirthoir)

http://www.add1tocobol.com
Regular add1tocobol meetings:
Where: FREENODE IRC
Channel: #add1tocobol
Access from the web: http://www.add1tocobol.com/i_o_control.php
Date: Sundays
Time: 9:00am Eastern

::::::::NOTE IMPORTANT::::::::::
There has been some confusion as to the time. I believe this is because the United States uses Daylight Savings Time. On top of this the Government recently extended the dates that EDT (eastern daylight time) would run. So to be sure that you make it at 9am Eastern, I have this link:

http://www.timeanddate.com/worldclock/city.html?n=179

That shows the time in New York City at the moment of viewing. It also explains the current UTC offset for the Eastern Zone in the United States. Simply compare the current time that site states, with your current time and you will know how far off we are from you.
::::::::::::::::::::::::::::::::

We're there all of the time, even when we do not have a meeting. Stop on by for Open Cobol Support and chat.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]