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



Bob,

I prefer just passing %Size( Field ) because:
A) It's not supported for all data types
B) It's not worth all the extra code required to extract that one value
C) It seems to be a little flaky

Putting those aside, doesn't szEntry require OPDESC on that line (not just on the PI line)? Since it seems to work when called from a procedure, maybe not, but that's my gut reaction.

-mark

At 1/11/03 01:16 AM, you wrote:
I'm using the OPDESC keyword on a procedure.
The 3rd parameter of that procedure is defined as follows (well
actually, here's the entire proc interface):

     D GetNextEntry    PI            10I 0 OPDESC
     D  szUserSpace                  20A   Const
     D  nRefPos                      10I 0
     D  szEntry                    4096A   OPTIONS(*VARSIZE)

Upon entering the procedure, I call CEEDOD, or CEEGSI.
I do that to extract the length of parameter 3.

Upon calling either of these APIs, I get a "CEE0502 Missing operational
descriptor" message.

Now here's the strange part:
If I call this procedure from within another procedure, I don't get the
error and the APIs work fine. But if I call the exact same procedure
from the mainline calcs in a program, I get the above mentioned error.






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.