Page 1 of 1

Object Oriented Cobol

PostPosted: Sat Oct 08, 2011 6:25 pm
by jinojohn81
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


Thanks.
John

Re: Object Oriented Cobol

PostPosted: Sat Oct 08, 2011 7:55 pm
by Robert Sample
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?

Re: Object Oriented Cobol

PostPosted: Sat Oct 08, 2011 10:32 pm
by jinojohn81
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.

Thanks,
John

Re: Object Oriented Cobol

PostPosted: Sat Oct 08, 2011 11:02 pm
by enrico-sorichetti
start from here choosing the proper bookshelf for Your enterprise COBOL
http://www-03.ibm.com/systems/z/os/zos/ ... ppls2.html

Re: Object Oriented Cobol

PostPosted: Sun Oct 09, 2011 9:58 am
by dick scherrer
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 ;)