AbsaOSS / cobrix

A COBOL parser and Mainframe/EBCDIC data source for Apache Spark
Apache License 2.0
136 stars 77 forks source link

Corrupted Copybook #476

Open jiabarbs opened 2 years ago

jiabarbs commented 2 years ago

Why I am getting this error?

ZACTN /opt/eventlog/dev/Copybooks/asia/ZACTN.cpy Exception parsing copybook - see logs ZACTN 00000974000101 00411875 HPK 00001 NOTIFYREF Y 20220301 ManualRefer Test Refer 010001HPKZR08

ZR020 M-ZR020-STRUCT-ZR020-STRUCT-ID PIC X(10) M-ZR020-STRUCT-ZR020-STRUCT-LENGTH PIC 9(8) <00000573> M-ZR020-STRUCT-ZR020-ENTRIES-NUMBER PIC 9(3) <002> message.length()=573 index=21 LeftOver: <ZR20ACTN 001F259E005Contract not found ZR20ZR10 000S1 E000Error; Please Contact Support >

ZR090 M-SR090-SR090-STRUCT-ID PIC X(10) M-SR090-SR090-STRUCT-LENGTH PIC 9(8) <00000018>

yruslan commented 2 years ago

Hi, I don't recognize the error. Could you provide the copybook that you are using and what Corix code snippet do you use to parse it?