Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: COBOL Layout parsing

by converter (Priest)
on Mar 31, 2002 at 14:53 UTC ( #155607=note: print w/replies, xml ) Need Help??

in reply to COBOL Layout parsing

When you mention "redefined fields," are you referring to variant records, where different record types are stored in the same data set and an indicator field is used to distinguish record type?

If so, grab each record and use the type indicator to key into a hash of record layout definitions.

Also, I have a nice EBCDIC ascii/hex dump module here. If you'd like to give it a try I'd be happy to ship you a copy. It dumps ASCII with non-printables masked with dots followed by a two-row hex dump of the source data (unconverted), and can print a ruler line above each record. I use it to dump EBCDIC data sets to files for reference while I'm working on conversions and I've found it quite handy. I plan to submit the module to the CPAN one of these days and I'd love to have some folks test it a bit and suggest improvements.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155607]
[karlgoethebier]: likes Jimmy

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-03-24 17:47 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.