× 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 2012/5/24 5:40 PM, Koester, Michael wrote:
...

Who would have thought it would be that easy. (Not me, obviously)


Watch out for embedded quotes. You might not have any quotes in your character subfields, but if you have an integer subfield it could easily have x'7d' as part of the integer data. Same with the length prefix of a varying length field.

So you should run through your data structure and change any x'7d' to x'7d7d'. (You could use RPG's %scanrpl for this if you are on v7r1.)

But this mechanism of passing the data structure as though it were a character value seems icky to me. Even though there's more setup required, using a data queue, or data area (but brrr, not the *LDA), or a file, or a user space would be better in the long run, I think.

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.