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



I'd like to thank all of you who tried to suggest a solution to my request.
It's nice so many people gave it there all to take on the challenge.
Sorry I wasn't able to get back to all of you yesterday. I had to go to a meeting and
just got out of one today.

Comments below...

On 27 Sep 2010 at 18:50, Barbara (Barbara Morris <rpg400-l@xxxxxxxxxxxx>)
commented about Re: Convert from free to fixed:

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)

Thanks Steve. This would be a great answer if %lookup was available to me. %Lookup
was introduced into the OS in v5r1. Of course unless you knew my predicament you
wouldn't know that this machine is on v4r4.

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

Thank you very much Barbara. It's nice to know you realized there is a possibility that
this is exactly what I needed. I will be testing it as soon as I can get this program to
compile. That was very nice of you spend the time to figure out how to do this.

Thank you to all the rest of you who made suggestions on how to resolve my request.

Gary Kuznitz

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.