|
On Sat, Feb 23, 2013 at 11:50 AM, Jack Callahan wrote:
Given the current behavior of RPG strings in the context of data
structures, not difficult to construct a solution without changing
RPG.
In this instance, define a third data structure using LIKEDS,
initialize it and copy the contents of the "working" DS, and then
compare the two copied snapshots of the "working" data structure.
I think it might make a difference how you do the copy. If you're on
V5R4 or later, you can use EVAL-CORR, and I'm very confident that
will work. I'm not as sure about plain old EVAL (which is implied in
free-form). I would expect that EVAL just does a byte-for-byte copy
of the entire structure, which wouldn't help you. (I don't have
convenient access to an i right now to check myself.)
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.