You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Z/OS rdw file with some fixed length sections and some variable sections. I've created all the necessary classes from the copybook successfully, but when I try to read the mainframe file from my desktop it seems to fail immediately. Is there something special I need to do to handle rdw format? This is all that I have in my main method:
File input = new File("C:/temp/CLSMULTI.bin");
byte[] hostData = IOUtils.toByteArray(new FileReader(input));
Cob2RecordConverter converter = new Cob2RecordConverter();
FromHostResult<Record> result = converter.convert(hostData);
which results in:
Exception in thread "main" com.legstar.base.visitor.FromCobolException: Second nibble is not a digit. Error at offset 0 : [0x0B100000F3<-F0F6F6F6D4F2F0F1F8F0F6F2F1F2F0F0]. COBOL variable path: RECORD/CLS-KEY/CLS-SOC-NUM. COBOL type: CobolZonedDecimalType
This is literally the first field in the copybook:
000100 01 RECORD. 00010000
001700 05 CLS-KEY. 00170000
001900 10 CLS-SOC-NUM PIC 9(5). 00190000
thanks
The text was updated successfully, but these errors were encountered:
Hello,
I have a Z/OS rdw file with some fixed length sections and some variable sections. I've created all the necessary classes from the copybook successfully, but when I try to read the mainframe file from my desktop it seems to fail immediately. Is there something special I need to do to handle rdw format? This is all that I have in my main method:
which results in:
This is literally the first field in the copybook:
000100 01 RECORD. 00010000
001700 05 CLS-KEY. 00170000
001900 10 CLS-SOC-NUM PIC 9(5). 00190000
thanks
The text was updated successfully, but these errors were encountered: