while reading i am also getting exception in getCleanFieldValue() method as net.sf.JRecord.Common.RecordException: DIS-TRR-SECONDS: Invalid Zoned Decimal: ??????? i tried remove the exception occuring feilds in copy book and executed i'm getting exception for PIC S9(7)V99. PIC S999V COMP-3. PIC S9(07)V99 COMP-3. can you please help how to read these values and how to get string type values without encryption
Hi bruce, i have copybook file and data file which is having binary data with .txt files. i am able to parse copybook(UTF-8) and data file(ANSI and tried with UTF-8 as well) values but the data file values are getting as encrypted. i tried with changing encoding value of file but the results are same. here i'm attaching my copybook and data file sample values(not full file but the format is same if needed i can share screenshot). please find the code snippet below CobolIoProvider ioprovider = CobolIoProvider.getInstance();...
Hi Bruce Thanks for the reply . Yes that was not full copybook file. I tried to read the data using belo att chment code and also attaching copybook screenshot please find Here i'm facing values tobe coming as encrypted and headers are repeating with their values like DIS-CHECK-EOB-CHARS (65), DIS-CHECK-EOB-CHARS (53) So i need unique names with corresponding values CobolIoProvider ioprovider = CobolIoProvider.getInstance(); FileInputStream copyStream = new FileInputStream (new File(filename)); AbstractLineReader...
Hi , i need to parse cobol files into string format using JRecord with java. can some body give the code which gives copy book all unique names in one object and all values of data file into String format with corresponding copybook names here are copybook and data file format copybook.txt 01 DISBERSMENT-REC. 02 DISB-REC-PART1. 05 DIS-DTL-INDEX 10 DIS-DTL-INDEX-1 PIC X(3) VALUE SPACE 10 DIS-DTL-INDEX-2 PIC X(6) VALUE SPACE 05 DIS-DISB-CODE PIC X(3) VALUE SPACE datafile.txt 02152018DFAHHHHHHHHHH 265370DFAT2156605B...