I wouldn't try and parse all the possible Cobol permutations. Can you not compile the copybook and process the Data Division map the compiler produces - that way you have a fixed format input which you should be able to reformat for any language (Redefines might need some special handling but everything else ought to be starightforward).
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.