× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm not certain that file encapsulation directly leads to MVC, especially in RPG. Perhaps I once again have the wrong idea of MVC implementations in RPG, but what we're talking about specifically is the M in MVC. The model...

The model contains functions that perform work. These functions might be I/O consumers (reading data from DB2), or might just invoke a calculation or algorithm. In any case, the developer requests a function or series of functions to produce a result.

The view is simply the DSPF. It provides the UI.

The controller is the RPG program that operates between the DSPF and the Service Programs that contain your functions. Controller manages I/O to UI, populating details (from the model) to the view as needed.

So, anybody who has written a program with a DSPF, where all the functions are contained in external service programs or modules has written an MVC application.

IMO, for an RPG developer, getting functions into service programs is the great enabler of MVC, in any flavor...

-Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of GKern@xxxxxxxxxxxxxxxx
Sent: Wednesday, April 04, 2012 2:56 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: File Encapsulation Quandary

Maybe I'm a bit dense here but I thought in the RPG world file
encapsulation was the mechanism that could lead towards supporting an MVC
architecture and therefore a good thing to strive for.

(Just a comment, not a question.)

Thanks, Jerry

Gerald Kern - Information Technology
Programming Supervisor
IBM Certified RPG IV Developer
Lotus Notes/Domino 8.0.1 Administrator
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.