IBM / JTOpen

IBM Toolbox for Java, an IBM i communications library
https://ibm.github.io/JTOpen/
Other
56 stars 26 forks source link

AspOpenList: use recordLength to avoid offset issues from the new fields in v75 #145

Open JMConnect opened 7 months ago

JMConnect commented 7 months ago

In 7.5 (and maybe some patch levels of 7.4?) some of the QYASPOL formats have added fields. The recordLength value was not taken into account and for these systems the values read were incorrectly offset after the first record.

JMConnect commented 7 months ago

Another issue here is getBestGuessReceiverSize returns too small of a number for some of these now and it has to re-run with a larger receiver variable. I could adjust this to return updated record lengths based on the system version if that makes sense and wouldn't cause other issues.

ThePrez commented 7 months ago

Another issue here is getBestGuessReceiverSize returns too small of a number for some of these now and it has to re-run with a larger receiver variable. I could adjust this to return updated record lengths based on the system version if that makes sense and wouldn't cause other issues.

Seems safe and reasonable