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



Elvis,

Can you have a single user space which contains pointers to other user
spaces? When you need to add job information, you go to the 'primary'
user space and run through each of the pointers in there, accessing the
related user space (which you treat simply as memory, since you're just
using a pointer) and checking for a record in each other user space. In
the 'prmary' user space, you'd simply have an array like this:

D MainDS           DS
D  Array                           Dim(10)
D   UsrSpcPtr                  *
D   NbrOfJobs                10I 0

and in the 'secondary' user space you'd have your array of job
structures. You'd still only need to use the QUSPTRUS API once to get
the pointer to the main user space and then have a loop from there. Of
course you'd need to have processing to create more secondary user
spaces as needed, but that's not a problem...

Another option might be to use a user index - it'll certainly be faster
than file I/O, but maybe slower than using one or more user spaces...

HTH,

Rory


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.