Lose the "+" on the first c-spec.
C Eval slashremoved =
C %replace('': %subst(bighunkdata:gt:len):2:1)
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Kuznitz
Sent: Friday, October 01, 2010 4:47 PM
To: RPG programming on the IBM i / System i
Subject: Operands are not compatible with the type of operator
I'm getting an error.
C Eval slashremoved = +
C %replace('': %subst(bighunkdata:gt:len):2:1)
*RNF7421 30 014600 Operands are not compatible with the type of operator.
d bighunkdata s 65535
d gt s 5 0
d len s 5 0
d slashremoved s 50A
Compiling in v4r4
Do I need to convert that to something v4r4 likes better? How?
Does anyone have any idea what might be causing the error?
Gary
This mailing list archive is Copyright 1997-2026 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.