Tuesday, March 04, 2008

J2C CICS COBOL

In COBOL, some field might be defined as "OCCURS 300 TIMES". IBM Rational Software Architect version 7.0.0.3 translates it to an array in Java Binding Class with both lower bound and upper bound 300.

That causes problem when client sends up less than 300 records.

I solved it by editing the generated Java Binding Class and modifying the lower bound validation to use 0 instead of 300.

No comments: