-
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 #703 from smeup/bugfix/LS25000557/movea-from-ds-to-s
Bugfix/LS25000557/`MOVEA` from DS to S
- Loading branch information
Showing
8 changed files
with
165 additions
and
2 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* 05/02/25 | ||
D* Purpose: Must fire the following errors during execution of | ||
D* `C MOVEA SCAATTDS SCAATT`: | ||
D* line 13 - "You cannot move a DS into a numeric array" | ||
D* because isn't possible to assign DS to a Standalone defined | ||
D* as number | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATT S 1 0 DIM(10) | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C MOVEA SCAATTDS SCAATT | ||
|
||
C SETON LR |
35 changes: 35 additions & 0 deletions
35
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00195.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,35 @@ | ||
V* ============================================================== | ||
V* 05/02/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA from DS to S defined as array. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * An operation is not implemented: takeFirst not yet implemented | ||
O * for DataStructValue. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 10 | ||
D SCAATT S 1 DIM(10) | ||
D I S 2 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATTDS SCAATT #Issue executing MoveAStmt at line 4. An operation is not implemented: takeFirst not yet implemented for DataStructValue | ||
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 |
31 changes: 31 additions & 0 deletions
31
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00196.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,31 @@ | ||
V* ============================================================== | ||
V* 06/02/2025 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * MOVEA from DS to S defined as array, with size lower than DS. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 8 | ||
D SCAATT S 1 DIM(8) | ||
D I S 1 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATTDS SCAATT | ||
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 |
32 changes: 32 additions & 0 deletions
32
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00197.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 DS to S defined as array, with size greater | ||
O * than DS. | ||
V* ============================================================== | ||
D SCAATTDS DS 10 | ||
D SCAATTSTR S 12 | ||
D SCAATT S 1 DIM(12) | ||
D I S 2 0 | ||
|
||
C EVAL SCAATTDS='0123456789' | ||
C EXSR SHOW | ||
|
||
C MOVEA SCAATTDS SCAATT | ||
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 |