No real disagreement, especially given how you worded it. For decimal 
fractions, I wanted to emphasize that using CHGVAR to convert from a *DEC (6 2) 
to a *CHAR 6 probably won't give the desired result. _Care_ must be taken to 
eliminate the fractional portion by properly scaling the result first, probably 
in that case by multiplying by 100 into a *DEC (6 0) and then copying into the 
*CHAR 6. And in various extreme cases, even that can't work. (Try it with a 
*DEC (15 5) that needs to be passed as *CHAR 20.)

Ummm... of course, if you have any slick tricks you'd like to share...?

Tom Liotta wrote:

>   5. RE: Parameter passing from CLP to COBOL/400 program (Jon Paris)
> >> Be aware that _any_ need for negative numbers or for decimal fractions
>may take significant ....
>I agree that some effort is needed for negatives, but not for decimals.
>_Care_ is needed but nothing else.

Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788 x313
Fax    253-872-7904

The NEW Netscape 7.0 browser is now available. Upgrade now! 

Get your own FREE, personal Netscape Mail account today at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.