Object Oriented Cobol

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Object Oriented Cobol

Postby jinojohn81 » Sat Oct 08, 2011 6:25 pm

Hi all,

I am trying to get some information on the object oriented cobol, can some one help me out.

The Cobol used in my machine is Cobol 370

now (1) can i write a Object oriented Cobol program in Cobol 370 ?

(2) How can i call a Object oriented Cobol module from a normal cobol program ? if so what are the changes required ?

(3) How can we write programs in Object oriented , can someone give me some basic examples and also some examples on file read and write and also on database read and write.

(4) Can we connect Pega system to the Objecdt oriented Cobol ? If so what all changes are required ?

So it is like Normal Cobol should call object oriented cobol and Object oriented Cobol should call the pega system

Normal Cobol ----- > Object Oriented Cobol ------ > Pega system

Does anybody has some experience or knowledge on this part please help me out , I am looking for some manuals with examples to start with object oriented cobol programming. Please let know if you have any

Posts: 3
Joined: Fri Oct 07, 2011 3:24 am
Has thanked: 0 time
Been thanked: 0 time

Re: Object Oriented Cobol

Postby Robert Sample » Sat Oct 08, 2011 7:55 pm

The questions you are asking are answered in the Language Reference and Programming Guide manuals for your version of COBOL. If you do not have access to these manuals at your shop, you can find them at the IBM web site. You need to plan on doing a LOT of reading.

1. The manual will tell you -- probably but I am not sure about COBOL/370 and OO COBOL since I've been using Enterprise COBOL for many years.
2. Typically, you would not (although it may be possible; I just don't know) -- OO COBOL programs interact with Java and other object-oriented languages, not other COBOL programs. The layout and structure of OO COBOL programs is extremely different from "normal" COBOL programs, and typically they are compiled into DLL files, NOT load modules.
3. The manual has sample programs that you can use as a guide. I have tested the sample programs in the Enterprise COBOL manual and gotten them to work -- but it took literally weeks to get all the pieces right.
4. Since I have no idea what a "pega system" is, there's no way I could tell. Is this hardware? Is this software? Does it run on z/OS or Unix or Windows or something else? How would the interface work?
Robert Sample
Global moderator
Posts: 3686
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times

Re: Object Oriented Cobol

Postby jinojohn81 » Sat Oct 08, 2011 10:32 pm

Thanks Robert.

Pega is a software, it runs on Unix or Windows platforms and as far as i know not in Z/OS .

Coming back to the question

Can a Normal cobol program (not written in Object Oriented way) can interact with a Cobol program written in the OO way , I mean both both programs are still in Enterprise Cobol one in normal way and the other in OO way ? how these programmes can interact and what would the necessary steps that should be taken care to do so??

can you please some idea on this from the Enterprise Cobol perspective please.
and also can you please provide some good links on manuals on OO cobol (COBOL 370 or Enterprise COBOL anything should be fine), i have searched for it and couldn't get anything really good to go with.

Posts: 3
Joined: Fri Oct 07, 2011 3:24 am
Has thanked: 0 time
Been thanked: 0 time

Re: Object Oriented Cobol

Postby enrico-sorichetti » Sat Oct 08, 2011 11:02 pm

start from here choosing the proper bookshelf for Your enterprise COBOL
http://www-03.ibm.com/systems/z/os/zos/ ... ppls2.html
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2978
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 160 times

Re: Object Oriented Cobol

Postby dick scherrer » Sun Oct 09, 2011 9:58 am

Hello and welcome to the forum,

If you are goping to pursue OO-COBOL, suggest you get a (current) version of Enterprise COBOL running for this.

Trying to "mix" the 370 cobol with Enterprise cobol may cause more problems than you want to deal with. (re-read the reply from Robert).

Even with the environment rather current, i suspect it will be a challange. . .

fwiw ;)
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to IBM Cobol


  • Related topics
    Last post