For everyone's information, C2N2 is based on Barbara Morris's GETNUM routine. As commented in C2N2's prototype:

* Prototype for c2n2 subprocedure
  ...
* Adapted from getnum subprocedure, written by Barbara Morris,
* IBM Toronto laboratory.
  
Mel Rothman, CGIDEV2 Author
Mel Rothman, Inc.

Scott Klement wrote:

On Thu, 22 Dec 2005, Jon Paris wrote:
>
> If you are on V5R3 use the %Dec BIF.
>

Using %DEC to convert a character field to a decimal field starts at V5R2.
Jon may be thinking about converting a date-type field (or time, or
timestamp) since that ability isn't available until V5R3.  Converting
character to decimal is available in V5R2, though

For older releases, use the GETNUM routine written by Barbara Morris of
IBM Toronto.  It works very similarly to %dec(), and outperforms just
about every alternative.
  http://faq.midrange.com/data/cache/52.html



    


  

SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer


YAHOO! GROUPS LINKS




Reply via email to