On Wed, 16 Nov 2005 04:06:51 -0600, Andy Robertson
<[EMAIL PROTECTED]> wrote:

>A while back I wrote (largely for my own amusement) a dialog to take a
COBOL
>copy book, compile it, and generate a Java class that could be used to map
>and access it.
>
>1) Is there any freeware or shareware already available to do this???  Or
if
>not precisely this, to produce the sort of map of a COBOL file that can be
>fed in to such a process???  I don't want to reinvent the wheel.  The CBT
>doesn't seem to have any thing.
>
>2) If not, does any one know any recommended software packages??

For commercial products, I believe BEA, iBatis, Websphere Studio and others
provide this function. They generally create classes for use in a specific
framework.

I tackled this problem myself a few years ago using JAVACC to parse the
source. I never finished it because we shifted gears to another approach,
that of using XML as the mapping and bridge. Our implementation is
atypical, in that the COBOL source, the XML-COBOL bridge and the Java Bean
are all generated at the same time by a progam generator using metadata. We
are not reverse engineering the COBOL.

However, you might want to visit the XML approach for reverse engineering.
If you search sourceforge.net for "Java AND COBOL" you'll find several
projects that map COBOL copybooks to XML. You might find some useful pieces
there to accomplish all or part of what you want to do.

-Rob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to