|
Jeff, Hope your experiment works. If Scott's suggested prototypes don't work either, could you put the second module in a service program that returns a pointer to its MODS and code the based MODS in the 1st module? Roger -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young Sent: Wednesday, March 15, 2006 7:52 AM To: RPG programming on the AS400 / iSeries Subject: RE: Passing Multi Occurance DS as parm btw modules Roger, I am doing a multiple row SQL FETCH in the second module, and the only thing it will accept is a MODS. I do not think it will accept a MODS with the BASED keyword, but I will check. Thanks, "Mackie, Roger L. (Precision Press)" <RLMackie@xxxxxxxxxxxxx> wrote: Jeff, You can pass the pointer to a MODS in one module and base an identical MODS in the other module on that pointer. I had to do that once and it works well. However, As Scott pointed out before, it is much easier to pass DS arrays if your code does not need to be compatible with earlier releases. Roger Mackie -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young Sent: Tuesday, March 14, 2006 2:33 PM To: RPG programming on the AS400 / iSeries Subject: Re: Passing Multi Occurance DS as parm btw modules Scott, Typo on Occur. S/B Occurs. Occurs is not allowed on a prototype parm. How do I define it then? -- This is the RPG programming on the AS400 / iSeries (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. Jeff Young Sr. Programmer Analyst Dynax Solutions, Inc. A wholly owned subsidiary of enherent Corp. IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3 IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3 --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments.
As an Amazon Associate we earn from qualifying purchases.
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.