|
One thing about MODS.... There is an implied cursor built in to RPG, that you use to control the memory location you want to access in the MODS... When passing an ENTIRE MODS, you must always set the occurance value to 1, so that you are pointing to the beginning of the MODS. Another option worth reviewing is to change the Multi-Occurance DS to an Array DS. They result in the same use of storage, and I like the array syntax better than MODS. jmo, Eric -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Johan Vangilbergen Sent: Tuesday, January 30, 2007 9:07 AM To: RPG400-L@xxxxxxxxxxxx Subject: Passing a multiple occurrence datastructure from a procedure Hi, I'm having troubles with passing a multiple occurence data structure as a parameter to a subprocedure. Can anybody help me ? I have a subprocedure where I use a multiple occurrence datastructure with 2 occurrences : the first occurrence is filled with the mailing address of a client, the second with the delivery address. However when I pass this datastructure, it seems as if I get only the first occurrence. My procedure interface looks like this : D GetPatLoc PI D Ref1 Like(Ref1Kc) Const D Ref2 Like(Ref2Kc) Const D Loca LikeDs(Location) D Location DS Occurs(2) D ... What am I doing wrong ? Johan Vangilbergen YUSE Phone : +32 16 74 50 80 Fax : +32 16 74 50 89 Email : jvg@xxxxxxx <mailto:jvg@xxxxxxx> Web : WWW.Yuse.be <http://www.Yuse.be> Address : Bondgenotenlaan 138, B-3000 Leuven, Belgium
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.