× 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.



>What if I call ChgDa with a decimal variable:
> DCL  DecVar  Dec(5,2)
>ChgVar &DecVar Value(22.23)
>Call chgda ('NUMB      BUCK      ' &DecVar )
>/* boom ? */
>
>a problem, buck, with the generic cl approach:
>a decimal dtaara can be 24,9. rpg supports such
>a packed decimal value.  cl does not.  only goes to 15,5.
>
>Keep on trying<g>

The original contention was that in CL, one "could not easily handle the
diff data types of diff data areas. Call the module to chg a char dtara,
then call it again to chg a dec(11,2) dtaara, then a logical, ..."  Given
that this CL snippet easily handles this, one can overcome the limitations
of CL's CHGDTAARA by using similar data area facilities in other languages.

Lest I fail the test <g>, CL can handle variables declared 15,9.  Readers
should prompt the DCL command for details.

Regards!
  Buck


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-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.