On Thu, Dec 17, 2015 at 9:34 AM, Vince Coen <[email protected]> wrote:
> Have you looked at Gnu Cobol (formally known as Open Cobol) v2 compiler?
>
Yes, I've messed around with that a fair amount. I identified about 2500
batch COBOL programs at work & downloaded them to my Linux desktop. About
750 of them compile without changes. Others get errors of various types.
The three most common are from a statement like:
SELECT OUTFILE ASSIGN TO OUTFILE.
ACBV150: 27: Error: Redefinition of 'OUTFILE'
ACBV150: 27: Error: 'OUTFILE' previously defined here
which then reports FILENAME is already assigned
It doesn't support the EJECT pseudo-op, which we use a LOT instead of a /
in the indicator column. (I actually have a "sed" which can easily fix
this).
or when a "smaller" level number is introduced after a "larger" level
number.
../COPYLIB/LICPMR: 485: Error: No previous data item of level 18
01 A.
10 B.
20 C PIC ...
20 D PIC ...
20 E PIC ..
modified to:
01 A.
10 B.
20 C.
18 D-E.
20 D PIC ...
20 E PIC ...
in order to "group together" some things that hadn't been previously, but
with renumbering.
>
>
> https://sourceforge.net/projects/open-cobol/
>
> Converting the CICS code is another issue.
>
And a killer for us.
--
Schrodinger's backup: The condition of any backup is unknown until a
restore is attempted.
Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.
He's about as useful as a wax frying pan.
10 to the 12th power microphones = 1 Megaphone
Maranatha! <><
John McKown
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN