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



That's what I see too - it works fine on V5R2.

I've compiled the same code (with the /free bits reverting to fixed format
of course) on a V4R3 system (!) and it works there too. I don't have access
to a V5R1 system any more, so I can't test it on that release, but, assuming
it's not a V5R1-specific problem, my guess is still that something is making
the string zero length after it's been passed in.

Pete

"Mel Rothman" <mel@xxxxxxxxxxxxxx> wrote in message
news:3EA85ECF.5070702@xxxxxxxxxxxxxxxxx
Pete,

I copied your code to a V5R2 system, compile it and ran it.

It worked correctly.  Here is the debugging output just prior to the
   return *null;
statement:

EVAL pXPath:x
    00000     000F8396 94978195 A8619799 9684A483   - ..company/produc
    00010     A3000030 41800000 00000000 00001158   - t... Ø.........ì

You may be back level on PTFs.  Here is the list of 5722WDS PTFs on the
system I used:

PTF
ID       Status
SI07461  Temporarily applied
SI07183  Superseded
SI07055  Permanently applied
SI06981  Temporarily applied
SI06885  Permanently applied
SI06741  Permanently applied
SI06740  Permanently applied
SI06583  Permanently applied
SI06536  Permanently applied
SI06369  Permanently applied
SI06145  Temporarily applied
SI05992  Superseded
SI05894  Temporarily applied
SI05841  Temporarily applied
SI05810  Superseded
SI05793  Temporarily applied
SI05773  Permanently applied
SI05573  Superseded
SI05476  Permanently applied
SI05388  Permanently applied
SI05171  Permanently applied
SI05159  Permanently applied
SI05083  Permanently applied
SI05033  Permanently applied
SI05006  Permanently applied
SI04892  Permanently applied
SI04762  Permanently applied
SI04478  Permanently applied
SI04474  Permanently applied
SI04455  Superseded
SI04451  Permanently applied
SI04440  Permanently applied
SI04391  Superseded
SI03476  Superseded
SI00011  Superseded
SI00009  Temporarily applied


Mel Rothman
Mel Rothman, Inc.

Pete Clifford wrote:
> Here's my code:
>
> D GetElement      PR              *
> D pNode                           *   Value
> D pXPath                     32767A   Value Varying
> D pElemIter                      4P 0 Options(*Omit)
>
> D gNode           S               *
> D gRoot           S               *
>
> /free
>     gNode = GetElement(gRoot: 'company/product': *Omit);
>     return;
> /end-free
>
> P GetElement      B
>
> D GetElement      PI              *
> D pNode                           *   Value
> D pXPath                     32767A   Value Varying
> D pElemIter                      4P 0 Options(*Omit)
>
>  /free
>      return *null;
>  /end-free
>
> P GetElement      E
>


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@®å?Tgñ
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
or email: RPG400-L-request@®å?Tgñ
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.