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




From: Barbara Morris

It's already possible to pass a varying parameter by reference to a
procedure that wants a different length, but you have to specify
OPTIONS(*VARSIZE). You would usually use operational descriptors to get
the maximum size; you can use %LEN to get the current size.

I have no doubt that operational descriptors would work, Barbara. I assumed
that Scott didn't want to use them based on his statement, "Remember, I'm
talking about reference parameters. All that's passed from caller to callee
is a pointer. No size, data type, etc is passed."

If Scott were to use operational descriptors and maybe a based variable, I
think all of his issues would be solved without having to explicitly code an
index length.

Joe



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.