× 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.


  • Subject: Re: Cobol vs RPG vs Java vs C vs MI
  • From: Jon.Paris@xxxxxxxxxx
  • Date: Tue, 23 Nov 1999 17:08:24 -0500



 >>  I had heard at one time that COBOL performs slightly better than RPG since
even though most programmers don't use the RPG cycle, the logic is still
embedded in every program and still executes.  I didn't think it could be turned
off.

COBOL will tend to perform better than RPG in two main areas. The first is in
batch processing where you effectively scream from one end of the file to the
other. Because COBOL's field definitions map directly to the buffer (whereas RPG
moves each field into its own storage area) data is only moved when it has to
be. The second is program to program calls (this is I think where the RPG cycle
comes in) COBOL calling COBOL is about as fast as you can get in OPM other than
MI to MI. Paul Conte published some test results on this several years ago.

You cannot 'turn off' the RPG cycle, but you can request NOMAIN in RPG IV
modules which avoids the generation of cycle code by not allowing any main line
logic. i.e. a NOMAIN module is a collection of callable routines.

Earlier someone commented about RPG having better date handling than COBOL. This
was true for a while, but if anything the COBOL support is now more flexible
than RPG and encompasses all that RPG can do.


+---
| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.