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



Hi Mike,

That could work.
But I would have to rewrite more code just to get the one line comparison.
I am modifying an existing program and we keep our commented out/changed
code in the source file.(can be very messy after a while)

I've tried the pointer approach:

d String01 s 1000a based(point_01)
d point_01 s * inz(%addr(ds01))
d String02 s 1000a based(point_02)
d point_02 s * inz(%addr(ds02))


if String01 = String02 ;

Endif ;

Can I assume that all array elements are in line in memory?

In the end, it is a bit counterintuitive to compare strings to compare
arrays, so I ended up with a for loop.

Thanks .

Rest Begards
Wim

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.