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



The field always has a number, and I need to lower the number by 1. I'd removed that part of the statement in an effort to get it to compile.

Scott's answer seems like the right one.  On to Plan B.




Holden Tommy wrote:
HUH??

If both fields are character why not just
C   eval pa_infc15 = wField4A

???

If you're trying to get the value right-justified & zero-filled then you
could
/free
  evalr pa_infc15 = %Trim(wField4A);
pa_infc15 = %XLATE(' ' : '0' : pa_infc15);

Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Monday, June 26, 2006 11:42 AM
To: RPG programming on the AS400 / iSeries
Subject: %int problem: invalid parameter

What am I missing?  What is wrong with this line?

C    eval      pa_infc15 = %editc(%int(wField4A): 'X')

Where pa_infc15 is a 20-character field and wField4A is a 4-char field.

The error I am getting is:
*RNF0325 30      1 The parameter for %INT or %INTH is not valid.





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.