Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155607]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-12-06 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (117 votes). Check out past polls.