|
On Wed, Apr 10, 2013 at 5:13 PM, Dave <dfx1@xxxxxxxxxxxxxx> wrote:
2013/4/10 <Dirk.Marien@xxxxxxxxxxxxxxxxx>do
Choosing between them is like choosing between Outlook and Notes:
they have a slightly different way of 'processing', but basically, they
Whythe same thing, they have the same objective.
But on the i, I suspect that the overwhelming majority choose RPG. Why?
is COBOL the choice for mainframes?
The first answer from James (explaining the history) was a pretty good
explanation. "Report Program Generator" had a syntax well-suited to
its target audience. I would expand on it and say that building the
cycle into its design was also a major advantage for its intended use.
For that group of users/operators, and for the tasks they needed to
do, I would argue that RPG was *objectively better* than COBOL.
Someone can correct me if I'm wrong, but I think that the machines
where COBOL dominated (and perhaps still dominates) did not come with
RPG.
Finally, though I think sheer inertia is the main thing that makes
most i programmers choose RPG over COBOL today, RPG does have some
distinct advantages for a modern audience. RPG IV is much more like
mainstream programming languages, whereas COBOL is more verbose and
English-like. And today, if you are working with databases and you
want English-like, you are going to go with SQL anyway, rather than
COBOL.
I disagree with Dirk that RPG is pretty much interchangeable with
COBOL. I mean, in a theoretical sense, it is. Both languages are
Turing complete. But when it comes to actually using them, they have
different enough styles that being comfortable with one doesn't
automatically translate into being comfortable with the other.
John
--
This is the RPG programming on the IBM i (AS/400 and 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.
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.