Stingray - Schema-Based File Reader Blog
Simple handling of numerous data file formats, even COBOL EBCDIC.
Brought to you by:
slott56
More COBOL syntax is handled properly.
To an extent, there is some support of Occurs Depending On.
Also, some more complex 88-level items are properly parsed.
Small scripts like this can be used to confirm how well COBOL is supported.
import stingray.cobol.loader import logging, sys import pprint logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) with open("CCCCMST3.TXT", "r") as cobol: schema= stingray.cobol.loader.COBOLSchemaLoader( cobol, replacing=[("'XXXX'","X")] ).load() pprint.pprint( schema ) logging.shutdown()