×
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.
On 2010/9/27 5:26 PM, Gary Kuznitz wrote:
Ok, I know everyone is going to cringe on this one.
I'm having trouble converting from RPGLE free to fixed format with this statement:
/free
fnd = %lookup(%subst(bighunkdata:gt:len) : xmlfield );
/end-free
I can't resist a challenge ...
Steve Needles already posted this solution that is guaranteed to be
equivalent to the original:
c eval fnd =
c %lookup(%subst(bighunkdata:gt:len):xmlfield)
In case that's still too free, here's another (untested) version that I
believe is also equivalent.
C *like define xmlfield temp
C len subst(p) bighunkdata:gttemp
C z-add 1 fnd
C temp lookup xmlfield(fnd) 10
C *in10 ifeq *off
C z-add 0 fnd
C endif
As an Amazon Associate we earn from qualifying purchases.
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.