Jon: 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 email@example.com 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 http://www.powertechgroup.com __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.