|
>> His views on the brevity of COBOL vs. RPG _are_ a little weird, however. :-) Weird - me! Now who would think that of me .......... (Bruce, Don - you can take that grin off your faces!!) What I meant was that I don't see that something like the following is any more long-winded in COBOL than in RPG. Here's the RPG IV: D MyData DS D FirstField 10A D SecondField 9S 2 D AnArray 10A Dim(20) D LastField Like(SecondField) And here's the COBOL: 01 MyData. 05 FirstField Pic X(10). 05 SecondField Pic S9(7)V99. 05 AnArray Pic X(10) Occurs 20. 05 LastField Like SecondField. The only real extra typing in the COBOL is the PIC clause which I could abbreviate (and use REPLACE on) if I wished. The point I was trying to make is that most people's view of COBOL as verbose is based on a very old version of COBOL (ANSI 68 or 74) that no-one uses. In many cases I know well known RPG experts who when they had to code in COBOL found that it often took _less_ lines of code than RPG. Of course their reputation would be shot to hell if they admitted that in public <vbg> Jon Paris +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.