-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #699 from smeup/bugfix/LS25000341/encode-decode-fo…
…r-packet-of-ds Bugfix/LS25000341/Encode-Decode for Packed of DS
- Loading branch information
Showing
7 changed files
with
214 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00193.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
V* ============================================================== | ||
V* 22/01/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * This program declares and uses variables and fields as Packed | ||
O * for a simple math operation. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * On Jariko the final result about the sum between two DS fields | ||
O * are wrong and different. | ||
O * This is caused from wrong de-codification of Packed. | ||
V* ============================================================== | ||
D STD1 S 8P 0 | ||
D STD2 S 8P 0 | ||
D DS1 DS | ||
D DS1_F1 8P 0 | ||
D DS1_F2 8P 0 | ||
|
||
D RES S 8P 0 | ||
D MSG S 25 | ||
|
||
C EVAL STD1=20230930 | ||
C EVAL STD2=20230930 | ||
C EVAL RES=STD1+STD2 | ||
C EVAL MSG='STD: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL DS1_F1=20230930 | ||
C EVAL DS1_F2=20230930 | ||
C EVAL RES=DS1_F1+DS1_F2 | ||
C EVAL MSG='DS: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL STD1=12345678 | ||
C EVAL STD2=87654321 | ||
C EVAL RES=STD1+STD2 | ||
C EVAL MSG='STD: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL DS1_F1=12345678 | ||
C EVAL DS1_F2=87654321 | ||
C EVAL RES=DS1_F1+DS1_F2 | ||
C EVAL MSG='DS: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C SETON LR |
46 changes: 46 additions & 0 deletions
46
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00194.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
V* ============================================================== | ||
V* 22/01/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * This program declares and uses variables and fields as | ||
O * Standalone for a simple math operation, | ||
O * like `MUDRNRAPU00193` test. | ||
V* ============================================================== | ||
D STD1 S 8 0 | ||
D STD2 S 8 0 | ||
D DS1 DS | ||
D DS1_F1 8 0 | ||
D DS1_F2 8 0 | ||
|
||
D RES S 8 0 | ||
D MSG S 25 | ||
|
||
C EVAL STD1=20230930 | ||
C EVAL STD2=20230930 | ||
C EVAL RES=STD1+STD2 | ||
C EVAL MSG='STD: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL DS1_F1=20230930 | ||
C EVAL DS1_F2=20230930 | ||
C EVAL RES=DS1_F1+DS1_F2 | ||
C EVAL MSG='DS: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL STD1=12345678 | ||
C EVAL STD2=87654321 | ||
C EVAL RES=STD1+STD2 | ||
C EVAL MSG='STD: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C EVAL DS1_F1=12345678 | ||
C EVAL DS1_F2=87654321 | ||
C EVAL RES=DS1_F1+DS1_F2 | ||
C EVAL MSG='DS: ' + | ||
C %CHAR(RES) | ||
C MSG DSPLY | ||
|
||
C SETON LR |