× 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 Doug,

Am 14.02.2024 um 19:35 schrieb DEnglander--- via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx>:

dcl-pi prc_items;
@_key01 like(bbkey01) const; [packed 9]
@_billback# like(bbnumber) const; [char 15]
end-pi prc_items;

If possible try to switch the second (or both) parameters from CONST to VALUE and see, what happens then.

Changing the parameter type from a "LIKE" definition to the same data type in "written out" form doesn't change anything.

With CONST the compiler tests if the passed field is compatible with the parameter type. If not it will make a copy and pass a pointer to the copy. If yes it will simply pass a pointer to the original variable and make sure, that the procedure doesn't change it. But if the variable changes for some other reason (like changing the global field) will be possible.

So when in question - always try to switch to VALUE and try again.

HTH and kind regards,
Daniel

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.