• Subject: Re: Question on Cobol (Unix) file layouts...
  • From: Bob Larkin <blarkin@xxxxxx>
  • Date: Mon, 22 Feb 1999 18:27:02 -0800

Jon,
Hi. My name is Bob and I write COBOL. (ILE & /400)  (Isn't this the first of the
12 steps?)

Actually, I use both COBOL and RPG at various clients. I don't think any decent
RPGer would have a problem with COBOL if they had to use it. The AS/400 makes
some things simpler, with things such as Externally defined files, and Subfiles.
(Compared to many other platforms)

Now, the changes to the COBOL Run unit support to support ILE are a bit 
confusing
at first, but so was RPG.
FWIW
Bob


Jon.Paris@halinfo.it wrote:

>  >> 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
> +---
begin:          vcard
fn:             Bob Larkin
n:              Larkin;Bob
org:            <A HREF="HTTP://web.wt.net/~blarkin/">Larkin Computer Consulting</A>
adr:            <A HREF="http://web.wt.net/~blarkin/">Bob and Diana's Page</A>;;;Houston;TX;<A HREF="http://web.wt.net/~blarkin/">;United States
email;internet: blarkin@wt.net
title:          Systems Consultant
x-mozilla-cpt:  ;4104
x-mozilla-html: FALSE
version:        2.1
end:            vcard


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.