in reply to Re: COBOL Layout parsing
in thread COBOL Layout parsing

I've been working/struggling with COBOL and Perl for the last year, so I would be extremely interested in seeing something of this nature on CPAN. The struggling comes from COBOL, I assure you. Everyone knows there's nothing wrong with Perl! ;)

My needs are generally not (data|data layout) conversion oriented, but I could certainly use a module that parsed COBOL data layouts and plopped them into Perl data structures.

I would like to see a way to deal with the myriad of different COBOL dialects out there. It seems I am continuously reworking my scripts in order to deal with yet another COBOL dialect that my benevolent and sage employers have seen fit to jump right in to. Different dialects of COBOL (Unisys, Microfocus, IBM, Tandem, VAX, Wang, etc.) often handle data in different ways. The differences are usually subtle, but very important. Especially when dealing with comp fields. Would it make sense to have a base module implemented under ASCII COBOL (or some other standard) guidelines with other dialect specific modules available that would override the appropriate portions of the base?

I know we are discussing a COBOL-data toolkit, but how about parsing COBOL code in general? I am just now starting to really research what is already out there so please be gentle on a newbie to the monastery! The same concerns over dialect apply here as well.

Replies are listed 'Best First'.
Re: Re: Re: COBOL Layout parsing
by Curunir_wolf (Initiate) on Dec 04, 2002 at 13:55 UTC
    I have started work on a module to do some COBOL data division parsing, you might want to check it out here.

    It doesn't address all your needs (I only have IBM COBOL II to work with), but it's a start.

    What more would you like to see? Thx... HH

Re: Re: Re: COBOL Layout parsing
by mAsterdam (Sexton) on Mar 30, 2002 at 19:45 UTC
    torsore:

         My needs are generally not (data|data layout) conversion oriented, ...

    Could you state more specifically what functionality you would like to see available?

    Thx,

        Danny