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



Arthur Marino wrote:
And I don't believe (PLEASE CORRECT ME IF I'M WRONG) I can code " ColDta
= %Editc(%Dec(%Trim(ColDta):VARIABLE_WIDTH:VARIABLE_DECPOS):'X')".

That was my understanding too. The V6R1 ILE RPG reference states:
> %DEC(numeric or character expression{:precision:decimal places})
> When the first parameter is a numeric or character expression,
> the result has precision digits and decimal places decimal
> positions. The precision and decimal places must be numeric
> literals, named constants that represent numeric literals, or
> built-in functions with a numeric value known at compile-time.
> Note:
> %LEN and %DECPOS cannot be used directly for the second and
> third parameters of %DEC or %DECH, even if the values of %LEN
> and %DECPOS are constant. See Figure 219 for an example using the
> length and decimal positions of a variable to control %DEC and %DECH.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.