|
Currently my presentation tier (programs and display files) call I/O modules directly. I have the requesting program setup an externally defined MODS for however many records it wants and then it passes a pointer to that MODS as a parm to the I/O module. Any keys, etc, entered on the screen would be put in the first occurrance of the MODS. The I/O module then sets up a similiar MODS and positions it at the incoming pointer and uses the key fields in the first occurrance. It works fine, but I'm not entirely happy with it. I would prefer for the I/O module to create a structure large enough to hold however many records it finds and then pass a pointer to this structure back to the calling program along with the number of records it found. In other words, I think it would be better if the calling programs did not have to predetermine the number of records. To implement this now, however, would be a reversal of logic on my existing programs, so it will probably have to wait for a new project where I can start fresh. There seems to be ongoing debate on this list as to whether or not MODS can be dynamically sized or not, like arrays. I've seen several posters saying they could, but have seen no examples of that, yet. Short of that, to implement my desired change, I would probably have to resort to Arrays instead of MODS so that the I/O routine could set the size as needed. > -----Original Message----- > From: MWalter@hanoverwire.com [SMTP:MWalter@hanoverwire.com] > Sent: Wednesday, April 10, 2002 11:55 AM > To: rpg400-l@midrange.com > Subject: RE: Separation of Presentation, BL, and I/O Tiers > > > On number 3, What I meant is How do I get the data from the presentation > tier to the I/O tier. I have tested using both data queues and passing > data > structures. Here again the best answer is probably 'It Depends' > > > Thanks, > > Mark > > > Mark Walter > Sr. Programmer/Analyst > Hanover Wire Cloth a div of CCX, Inc. > mwalter@hanoverwire.com > http://www.hanoverwire.com > 717.637.3795 Ext.3040 > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. ************************************************************************************************************************************************************************************************************ This message originates from Lincare Holdings Inc. It contains information which maybe confidential or privileged and is intended only for the individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute or use the contents of this message. All personal messages express views solely of the sender, which are not to be attributed to Lincare Holdings Inc., and may not be copied or distributed without this disclaimer. If you received this message in error, please notify us immediately at MailAdmin@lincare.com or (800) 284-2006. ************************************************************************************************************************************************************************************************************
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.