|
From a design point of view you have an internal data structure that you areexposing to the outside world. What happens if you need to change it?
The way I do it, is to use the copybooks in QSYSINC/QRPGLESRC.
(QSYSINC/QRPGLESRC.QUSLOBJ in this case). Some people don't like the names
included therein but it's a standard with which I can easily live. :)
Use pointers in your programs, rather than moving data around.
I think I have an example of this at http://www.lovelady.com somewhere.
If not, I'll throw one together for you.
++
Dennis
++
There are very few personal problems that can't be solved by a suitable
application of high explosives.
Sent from my Galaxy tablet phone. Please excuse my brevity.
For any grammatic/spelling errors, there is no excuse.
++
"Jack Tucky" <jacktucky@xxxxxxxxx> wrote:
I downloaded an example program for reading objects using QUSLOBJ. Ithttp://www.code400.com/forum/showthread.php/9493-QUSLOBJ-example-in-free-fo
works fine.
<
rmat>http://www.code400.com/forum/showthread.php/9493-QUSLOBJ-example-in-free-for
mat
It has a FOR loop that moves the user space into a DS one object at a
time.
What's the best way to let other RPG programs use this program to get a
list
of objects? Should I return the user space name and define the DS in
my
calling program?
I'd really like to do this the cool latest way.
Thanks
Jack
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.