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



Hello Bryan,

You're right - the question is to allocate sufficient storage to handle any
possible size of the return variable.

I normally use one of two techniques in this situation:

- If you're able to determine an absolute maximum of the return variable and
it is within a reasonable size you could simply allocate (or define) the
return variable size using the maximum

- If it's not safe or applicable to use a maximum size you could call the
API twice - initially with an 8 byte parameter to obtain the actual length
available, allocate the storage requested and then call the api again with
the full return variable parameter.

I'll email you a couple of examples of the API in question privately.

Best regards,
Carsten Flensburg

----- Original Message -----
From: <bdietz@3x.com>
To: <rpg400-l@midrange.com>
Sent: Tuesday, April 23, 2002 10:11 PM
Subject: QtocRtvNetCnnDta


> I have been trying to code up a simple program using the V5R1 API
> QtocRtvNetCnnDta.
>
> I can get the data returned into the  NCND0200 format just fine.  I am
> having a terrible time trying to get some of the data in the List of
> Job/Task Connections data structure(?).
>
> I am trying to get to the data that is at the offset  contained in the
> variable  QTOLJAWC (Offset to list of jobs associated with).
>
> My initial thought is that since the offset is mentioned I should be able
> to "point" to that area using the eval stmt.   In my case this returnes no
> data.
> If I increase the size of the data structure QTOD020000 by 62 bytes(size
> of the data I want) I get the data I want.
> The proble with this approach is that there could be multiple occurences
> of that data structure.
>




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.