-
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 #704 from smeup/bugfix/LS25000567/movea-from-s-to-ds
Bugfix/LS25000567/`MOVEA` from `S` to `DS`
- Loading branch information
Showing
8 changed files
with
225 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
V* ============================================================== | ||
D* 06/02/25 | ||
D* Purpose: Must fire the following errors during execution of | ||
D* `C MOVEA SCAATT SCAATTDS`: | ||
D* line 13 - "You cannot move a numeric array into a DS" | ||
D* because isn't possible to assign Standalone defined | ||
D* as number to a DS. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATT S 1 0 DIM(10) INZ('A') | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C MOVEA SCAATT SCAATTDS | ||
|
||
C SETON LR |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU001100.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,32 @@ | ||
V* ============================================================== | ||
V* 06/02/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA from S, defined as array, to DS. | ||
O * The array size is greater than DS. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 12 | ||
D SCAATT S 1 DIM(12) INZ('A') | ||
D I S 2 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATT SCAATTDS | ||
C EXSR SHOW | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW BEGSR | ||
|
||
C SCAATTDS DSPLY | ||
C CLEAR SCAATTSTR | ||
C FOR I = 1 TO 12 | ||
C EVAL SCAATTSTR=%TRIM(SCAATTSTR)+ | ||
C %CHAR(SCAATT(I)) | ||
C ENDFOR | ||
C SCAATTSTR DSPLY | ||
C ENDSR |
34 changes: 34 additions & 0 deletions
34
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00198.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,34 @@ | ||
V* ============================================================== | ||
V* 06/02/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA from S, defined as array, to DS. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Error occurred: 'Result must be an Array or a String'. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 10 | ||
D SCAATT S 1 DIM(10) INZ('A') | ||
D I S 2 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATT SCAATTDS #Result must be an Array or a String | ||
C EXSR SHOW | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW BEGSR | ||
|
||
C SCAATTDS DSPLY | ||
C CLEAR SCAATTSTR | ||
C FOR I = 1 TO 10 | ||
C EVAL SCAATTSTR=%TRIM(SCAATTSTR)+ | ||
C %CHAR(SCAATT(I)) | ||
C ENDFOR | ||
C SCAATTSTR DSPLY | ||
C ENDSR |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00199.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,32 @@ | ||
V* ============================================================== | ||
V* 06/02/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA from S, defined as array, to DS. | ||
O * The array size is lower than DS. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 8 | ||
D SCAATT S 1 DIM(8) INZ('A') | ||
D I S 1 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATT SCAATTDS | ||
C EXSR SHOW | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW BEGSR | ||
|
||
C SCAATTDS DSPLY | ||
C CLEAR SCAATTSTR | ||
C FOR I = 1 TO 8 | ||
C EVAL SCAATTSTR=%TRIM(SCAATTSTR)+ | ||
C %CHAR(SCAATT(I)) | ||
C ENDFOR | ||
C SCAATTSTR DSPLY | ||
C ENDSR |