× 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 started my programming training with the basics of COBOL, and I remember
being horrified when I first saw RPG. My job as an RPG programmer was
recently abrubtly terminated, but I've just had an offer of employment as a
COBOL programmer. I will be trained, so how can I refuse? Even if it
doesn't work out, I end up with another tool in the box. But I just saw
something that made me even more optimistic about COBOL : on the most
well-known French employment site, if I type RPG, I get 30 jobs in the
whole country. If I type COBOL, I get more than 180! I seem to remember
that when I started out, things were the other way round. Could this be due
to the demise of the i, whereas systems using COBOL aren't as easily
replaced? Or, has COBOL advantages over RPG?


2013/4/11 John Yeung <gallium.arsenide@xxxxxxxxx>

On Wed, Apr 10, 2013 at 5:13 PM, Dave <dfx1@xxxxxxxxxxxxxx> wrote:
2013/4/10 <Dirk.Marien@xxxxxxxxxxxxxxxxx>
Choosing between them is like choosing between Outlook and Notes:
they have a slightly different way of 'processing', but basically, they
do
the same thing, they have the same objective.

But on the i, I suspect that the overwhelming majority choose RPG. Why?
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 thread ...

Follow-Ups:
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.