Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cobol Copybook Parser

Tags:

parsing

cobol

Can anybody suggest me how to extract the fields of a Cobol Copybook? It will be helpful if you could help with the code snippet or any links? Example:

I want to extract it like this.

Field No.
Field Name
Field Type      (999 or S9(4) or x(5)....)
Field Type-add  (COMP, COMP-3, etc.,)
Other-Details   (Copy Everything until "." excluding PIC clause)
like image 203
DevilGod Avatar asked Oct 22 '25 08:10

DevilGod


1 Answers

Disclaimer: I am the maintainer of ProLeap COBOL parser.

You could use the Java-based ProLeap COBOL parser to extract all kinds of data from COBOL files such as level numbers, picture strings etc. Also you can extract COMP, COMP-1 etc. from the usage clause like this.

The ProLeap COBOL parser is licensed under an open source license, so it can be used for free.

like image 171
u.wol Avatar answered Oct 27 '25 06:10

u.wol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!