× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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

cobol400-l-request@midrange.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.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.