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



On 10/9/06, James H H Lampert <jamesl@xxxxxxxxxxx> wrote:



So it's not a matter of allocating the memory; that's
already being done in the calling program. The issue is
accessing it. Somebody mentioned pointers; can anybody
point me to some information on how that's done from RPG?


Some of the IBM APIs work similarly.

An example:

QUSLJOBS (list jobs) loads up a userspace with variably configured
date. The first x bytes are header data, which contain the information
used to access the detail data. The data is all in a user space, but
there really isn't any difference between data in a user space and
data in a contiguous stretch of heap storage; both can be accessed
using pointer based variables.

A *very* simple example of processing information returned by
the QUSLJOBS API can be found at:

http://pando.org/downloads/cp0300r.txt

HTH,

Chris
--
chris@xxxxxxxxx
www.brilligware.com
Home of MineSweeper5250

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.