cobrix icon indicating copy to clipboard operation
cobrix copied to clipboard

Unable to read properly Variable Length RDW file using Cobrix

Open Loganhex2021 opened this issue 3 years ago • 1 comments

By using cobrix library, unable to read one of the Mainframe file (CP037) from Azure Databricks. But for the same file can able to read via Record Editor and it showing data correctly.

Used version: 2.2.2 File Type: Variable Length File Actual Records in the File: 102 Cobrix Read Record: 4 (Junk Data)

I have tried all the available option and it is not able to read the file properly.

@yruslan - Do you have any idea why we are not able to read the file which is readable by Record Editor?

Copybook first field after table name starting with COMP-3 type. is it causing an issue ? 01 HEADER. 05 Name-Num PIC S9(7) COMP-3.

Could you please provide any suggestion ?

Loganhex2021 avatar Nov 22 '22 08:11 Loganhex2021

Hi, @Loganhex2021 , you can use

.option("debug", "true")

to see HEX of raw values to find the source of the issue. Most likely the copybook does not exactly match the data. Maybe because the data has additional headers that are not part of the copybook.

yruslan avatar Nov 22 '22 15:11 yruslan