Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second nibble is not a digit. Error at offset 0 #26

Open
glangho opened this issue Jul 2, 2018 · 0 comments
Open

Second nibble is not a digit. Error at offset 0 #26

glangho opened this issue Jul 2, 2018 · 0 comments

Comments

@glangho
Copy link

glangho commented Jul 2, 2018

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:

        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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant