-
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 #647 from smeup/bugfix/LS24004606/movel-array-to-a…
…rray Bugfix/LS24004606/MOVEL Array to Array
- Loading branch information
Showing
10 changed files
with
441 additions
and
23 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
30 changes: 30 additions & 0 deletions
30
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00135.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,30 @@ | ||
V* ============================================================== | ||
V* 24/10/2024 APU001 Creation | ||
V* 29/10/2024 APU001 Improvements | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEL an integer array to another. The size of first is lower | ||
O * than destination. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, the error occurred was | ||
O * `Cannot set an array as factor 2 in MOVEL/MOVEL(P) statement' | ||
V* ============================================================== | ||
D ARR_1 S 1 0 DIM(3) INZ(1) | ||
D ARR_2 S 1 0 DIM(5) INZ(2) | ||
D TMP S 2 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR_1) | ||
C EVAL TMP=%CHAR(ARR_1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEL ARR_1 ARR_2 #Cannot set an array as factor 2 in MOVEL/MOVEL(P) statement | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR_2) | ||
C EVAL TMP=%CHAR(ARR_2(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
30 changes: 30 additions & 0 deletions
30
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00136.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,30 @@ | ||
V* ============================================================== | ||
V* 24/10/2024 APU001 Creation | ||
V* 29/10/2024 APU001 Improvements | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEL an integer array to another. The size of first is | ||
O * greater than destination. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, the error occurred was | ||
O * `Cannot set an array as factor 2 in MOVEL/MOVEL(P) statement' | ||
V* ============================================================== | ||
D ARR_1 S 1 0 DIM(5) INZ(1) | ||
D ARR_2 S 1 0 DIM(3) INZ(2) | ||
D TMP S 2 | ||
D COUNT S 2 0 INZ(1) | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR_1) | ||
C EVAL TMP=%CHAR(ARR_1(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C MOVEL ARR_1 ARR_2 #Cannot set an array as factor 2 in MOVEL/MOVEL(P) statement | ||
|
||
C FOR COUNT=1 TO %ELEM(ARR_2) | ||
C EVAL TMP=%CHAR(ARR_2(COUNT)) | ||
C TMP DSPLY | ||
C ENDFOR | ||
|
||
C SETON LR |
Oops, something went wrong.