Thank you Bruce. Will give it a try.
Hi Bruce, I have a single file that requires multiple copybooks. I am able to configure it using ICobolMultiCopybookIOBuilder as follows: ICobolMultiCopybookIOBuilder iob = JRecordInterface1.COBOL .newMultiCopybookIOBuilder("Root") .addCopyBook(copyBookURL1.openStream(), "X10") .addCopyBook(copyBookURL2.openStream(), "X20") .addCopyBook(copyBookURL3.openStream(), "Y10") .addCopyBook(copyBookURL4.openStream(), "X31") .setFont("cp037") .setFileOrganization(Constants.IO_VB) .setSplitCopybook(CopybookLoader.SPLIT_TOP_LEVEL);...
I see that I can use setRecordSelectionCurrentCopybook. I have two fields that I need to select the copybook on - REC-TYPE & REC-SEQ-NO. How can I specify multiple fields ?
I see that I can use setRecordSelectionCurrentCopybook. I have two fields that I need to select the copybook on - REC-TYPE & REC-SEQ-NO. How can I specify that use case.
Hi Bruce, I have a mainframe file (variable length) that has multiple record types mapped to it. I have used the newMultiCopybookIOBuilder to add multiple copy books to generate the schema. Now, the question I have how do I know what record was read when we have the AbstractLine. Any guidance here would be appreciated. Thanks, J
Interesting approach. I will implement this and will let you know. Thanks, J
Thank you Bruce. This is really very helpful information. I was able to get this working. Will share with you the code base once I stitch together everything. I have another simple question. How can I reliably get the length of fixed length record mainframe files ? Any guidance on that would be appreciated. Thanks, J
Bruce really appreciate your help on this. I was able to implement a selector on top which worked like a charm. I have another question, I am building a Hadoop RecordReader and I am processing very large files like 22GB. Files are variable length. I want to split files into 1 GB chunks (to process them in parallel). I want to find the nearest RDW to split correctly. I have three part question: I am looking for any recommendations on how to identify RDW. what's the best approach or method to finding...