JZOS Recordgen.asm IllegalArgumentException: length

General discussion on the JZOS batch launcher and toolkit
Post Reply
Yifat
Posts: 3
Joined: Thu Nov 20, 2014 10:03 am

JZOS Recordgen.asm IllegalArgumentException: length

Post by Yifat » Thu Nov 20, 2014 10:12 am

Hi,

I'm having a bit of a trouble running the sample JCL for converting SMFRCD83 DSECT.
I get the following error:

Error while processing file: //DD:SYSADATA
java.lang.IllegalArgumentException: length
java.lang.IllegalArgumentException: length
at com.ibm.jzos.fields.PackedDecimalAsIntField.<init>(PackedDecimalAsIntField.java:55)
at com.ibm.jzos.fields.DatatypeFactory.getPackedDecimalAsIntField(DatatypeFactory.java:600)
at com.ibm.jzos.fields.AssemblerDatatypeFactory.getPackedDecimalAsIntField(AssemblerDatatypeFactory.java:73)
at com.ibm.jzos.fields.DatatypeFactory.getPackedDecimalField(DatatypeFactory.java:647)
at com.ibm.jzos.fields.AssemblerDatatypeFactory.getPackedDecimalField(AssemblerDatatypeFactory.java:103)
at com.ibm.jzos.recordgen.asm.RecordSpecBuilder.makeField(RecordSpecBuilder.java:227)
at com.ibm.jzos.recordgen.asm.RecordSpecBuilder.processDCDSOperand(RecordSpecBuilder.java:161)
at com.ibm.jzos.recordgen.asm.RecordSpecBuilder.processDCDSRecord(RecordSpecBuilder.java:140)
at com.ibm.jzos.recordgen.asm.RecordSpecBuilder.process(RecordSpecBuilder.java:85)
at com.ibm.jzos.recordgen.asm.RecordClassGenerator.processFile(RecordClassGenerator.java:302)
at com.ibm.jzos.recordgen.asm.RecordClassGenerator.processLibrary(RecordClassGenerator.java:268)
at com.ibm.jzos.recordgen.asm.RecordClassGenerator.main(RecordClassGenerator.java:236)

ADATA is defined with RECFM=VB,LRECL=8188.
JZOS batch Launcher Version: 2.4.5 2014-03-14
Latest version of recordgen (jzos24x.zip)

Has anyone encountered this before? What am I doing wrong? How can I debug this?

Thanks,
Yifat

Yifat
Posts: 3
Joined: Thu Nov 20, 2014 10:03 am

Re: JZOS Recordgen.asm IllegalArgumentException: length

Post by Yifat » Sun Nov 23, 2014 8:30 am

Correction: jzos_recgen.jar version is 2.4.6 from 06/30/2014.

Thanks again.

dovetail
Site Admin
Posts: 1856
Joined: Thu Jul 29, 2004 12:12 pm

Re: JZOS Recordgen.asm IllegalArgumentException: length

Post by dovetail » Mon Nov 24, 2014 3:04 pm

The error would indicate that the SYSADATA file is corrupted.
Please post the JCL that you are using.

Yifat
Posts: 3
Joined: Thu Nov 20, 2014 10:03 am

Re: JZOS Recordgen.asm IllegalArgumentException: length

Post by Yifat » Tue Nov 25, 2014 10:22 am

It was an STDENV problem.

Thanks.

Post Reply