Thanks a lot, it worked !!
Thank you, Bruce, it indeed work and I do not get the error at that line anymore. The problem is that I get now: net.sf.JRecord.Common.RecordException: net.sf.cb2xml.sablecc.parser.ParserException: [line=64, Column=28] expecting: '.' So there is still sth wrong in the copybook and I cannot find sth similar with what you did...I will attach it. If you have time, maybe you can take a quick look because I am a cobol beginner and I cannot see the mistake...
Hi Bruce, Unfortunately, I still have that error: ~~> 0 net.sf.JRecord.Common.RecordException: net.sf.cb2xml.sablecc.parser.ParserException: [line=9, Column=15] expecting: '.' net.sf.JRecord.Common.RecordException: net.sf.cb2xml.sablecc.parser.ParserException: [line=9, Column=15] expecting: '.' This is my code: public static void main(String[] args) throws FileNotFoundException, IOException { String dataFile = "C:/Users/dobrmih/Downloads/UserTstSA200/tst/resources/file1nsw.txt"; String copybookName...
Hello, I am trying to parse a cobol file and I am using the copybook. Unfortunately, I get this error regarding the copybook : Error parsing Cobol: java.lang.RuntimeException: net.sf.cb2xml.sablecc.parser.ParserException: [line=9, Column=9] expecting: '.' The first part of the copybook, where the error can be found looks like this: * PMW-Private Wealth Ma * Generated on: 2020/03/27 Time: 16:03:32 * 01 RBPWM-SATZ * 05 RBPWM-DIMFR PIC X(250) Value Spaces. * 05 FILLER REDEFINES RBPWM-DIMFR * Fixed part...
Does not look really encouraging, I am not really sure what I could do. Do you think that if the file would be converted from ASCII to EBCDIC, it would work ?
Hi Bruce, I attach it again , hope it will work.Thanks a lot for your incredible help
the copybook is attached also
Hi Bruce, thank you for your incredible support, in eclipse everything works !! I have a final question for you. I replaced the input files and I get some errors saying "invalid packed decimal" or "invalid sign". Do you think this new file is not suitable for the font set, cp273? it looks as terrible as the other one, having comp-3 values. should I change anything in the code ?