smeup / jariko

a JAva virtual machine Rpg Interpreter written in KOtlin
Apache License 2.0
65 stars 11 forks source link

Bugfix/ls24003807/S to DS with positive number #600

Closed davidepalladino-apuliasoft closed 2 months ago

davidepalladino-apuliasoft commented 2 months ago

Description

This work resolves the issue when using the MOVE/MOVEL operations to move an alphanumeric standalone field into a data structure field. The table below describes the currently handled use cases:

Value * DS Field Type Precision (Scale) Result Notes
'00520' ZONED 5 (0) 520
'00520' ZONED 5 (2) 5.2
'0052 ' ZONED Error The value must contain only numbers.
'00520' PACKED Error The value must not contain only numbers.

* standalone field value or sub-value

Techincal notes

Every sub-value have to match with related DS field. To fix these problems in Jariko, I improved:

Related to #LS24003807

Checklist:

davidepalladino-apuliasoft commented 2 months ago

Updated description of this PR.