Both of these might be assisted by the COBOL grammar which can be found here :-)
/J\
In reply to Re: Re: Parsing Cobol Program by gellyfish in thread Parsing Cobol Program by gouse_baig