IBM COBOL & REENTRANT code (was: Confessions of an "OO Foreigner"

From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 12/30/03


Date: Tue, 30 Dec 2003 16:39:08 GMT


"Peter E.C. Dashwood" <dashwood@enternet.co.nz> wrote in message
news:3ff136b8_2@news.athenanews.com...
> "William M. Klein" <wmklein@nospam.netcom.com> wrote in message
> news:Mm3Ib.25364$Pg1.10164@newsread1.news.pas.earthlink.net...
<snip>

> > It should be noted here, that CICS programming (at least as long as I have
> known
> > it - and I cam in when macro was first being "phased out") has ALWAYS been
> > "event driven". So for those using OO in a GUI (or possibly other)
> > environments, being "event driven" is no "biggy" change in what COBOL can
> (and
> > does) do.
>
> It should be noted that IBM does NOT implement (true) re-entrant code in
> COBOL (to do so, COBOL would need to save and restore the system state when
> system interrupts occur. While this is possible in BAL, there are no direct
> facilities for doing it in COBOL). The code used with both CICS and IMS/DC
> (as it was), is "serially re-usable". The difference is subtle, but
> important.

Not truly relevant to an OO discussion, but IBM has offered a "truly re-entrant"
option for COBOL since the mid '80's - ever since VS COBOL II was introduced
(even before it was fully '85 Standard conforming). The "serially reusable"
restriction WAS true for OS/VS COBOL, but hasn't been for a couple of decades
now. (The compiler creates code that is "not self modifying" but modifies only
a copy (one per instance) of data.)

-- 
Bill Klein
 wmklein <at> ix.netcom.com


Relevant Pages

  • Re: COBOL...to be, or not to be...
    ... ignoring that IBM has no .NET support and ignoring that IBM (on Windows ... and z/OS) has an ENTIRELY non-Standard approach to OO COBOL ... I want to be able to use the DotNet framework and classes ...
    (comp.lang.cobol)
  • Re: COBOL...to be, or not to be...
    ... Ignoring that IBM announced this week their replacement for WDz and ignoring ... that migration from either Fujitsu or Micro Focus COBOL to IBM ... Also, when you call for support on IBM COBOL, you don't get a 1st level flunky ... I want to be able to use the DotNet framework and classes in my ...
    (comp.lang.cobol)
  • Re: COBOL...to be, or not to be...
    ... I hadn't considered IBM and I should have. ... Cobol runs just ... iSeries crowd as RPG is, but there is always VisualAGE RPG, which is ... I want to be able to use the DotNet framework and classes ...
    (comp.lang.cobol)
  • Re: Today (Feb 26) IBM announcements
    ... significant announcements by IBM today. ... For a summary of today's announcements, ... announcement of COBOL being able to interoperate with 64 bit JAVA. ... Some people think that Java and COBOL are in the same boat... ...
    (comp.lang.cobol)
  • Re: Need for COBOL 64 bit on mainframe
    ... I agree that neither Clark nor any other IBM current customer that I am aware ... of has provided an example of an existing IBM mainframe COBOL program that has ... I know you have pushed your clients and applications to move on. ...
    (comp.lang.cobol)