|
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 mailing list archive is Copyright 1997-2025 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.