-
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 #651 from smeup/bugfix/LS24004654/wrong-result-for…
…-lookup Bugfix/LS24004654/Use CTDATA for DS field declared as Array
- Loading branch information
Showing
12 changed files
with
227 additions
and
10 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
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
38 changes: 38 additions & 0 deletions
38
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00149.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,38 @@ | ||
V* ============================================================== | ||
V* 30/10/2024 APU001 Creation | ||
V* 31/10/2024 APU001 Edited PROGRAM GOAL | ||
V* 06/11/2024 APU001 Edited PROGRAM GOAL | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case the error | ||
O * is manifested as side effect of `%LOOKUP`. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, the error occurred was | ||
O * `Failed requirement' | ||
V* ============================================================== | ||
D £IQ5D DS 5000 | ||
D £IQ5DCD 15 | ||
|
||
D DS | ||
DIQ5 42 DIM(3) CTDATA PERRCD(1) | ||
D IQ5CD 4 OVERLAY(IQ5:1) | ||
D IQ5DE 30 OVERLAY(IQ5:*NEXT) | ||
D IQ5PG 2 OVERLAY(IQ5:*NEXT) | ||
|
||
D$X S 5 0 | ||
DNQ5 S 5 0 INZ(3) | ||
DA4 S 4 | ||
|
||
C EVAL A4='*SCP' | ||
C EVAL $X=%LOOKUP(A4:IQ5CD:1:NQ5) | ||
C $X DSPLY | ||
C EVAL £IQ5DCD=IQ5CD($X) #Failed requirement. Depends from %LOOKUP result | ||
C £IQ5DCD DSPLY | ||
|
||
C SETON LR | ||
|
||
** Descrizione PgPref.D | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00150.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,18 @@ | ||
V* ============================================================== | ||
V* 31/10/2024 APU001 Creation | ||
V* 06/11/2024 APU001 Simplification | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case between | ||
O * CTDATA and its name there is more space. | ||
V* ============================================================== | ||
D DS | ||
DIQ5 37 DIM(3) CTDATA PERRCD(1) | ||
|
||
C IQ5(1) DSPLY | ||
C SETON LR | ||
|
||
** CTDATA IQ5 | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00151.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,18 @@ | ||
V* ============================================================== | ||
V* 31/10/2024 APU001 Creation | ||
V* 06/11/2024 APU001 Simplification | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case there | ||
O * isn't CTDATA but more space between name and stars. | ||
V* ============================================================== | ||
D DS | ||
DIQ5 37 DIM(3) CTDATA PERRCD(1) | ||
|
||
C IQ5(1) DSPLY | ||
C SETON LR | ||
|
||
** IQ5 | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00152.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,18 @@ | ||
V* ============================================================== | ||
V* 31/10/2024 APU001 Creation | ||
V* 06/11/2024 APU001 Simplification | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case there | ||
O * is only CTDATA. | ||
V* ============================================================== | ||
D DS | ||
DIQ5 37 DIM(3) CTDATA PERRCD(1) | ||
|
||
C IQ5(1) DSPLY | ||
C SETON LR | ||
|
||
** CTDATA | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00153.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,18 @@ | ||
V* ============================================================== | ||
V* 31/10/2024 APU001 Creation | ||
V* 06/11/2024 APU001 Simplification | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case there is | ||
O * only the name. | ||
V* ============================================================== | ||
D DS | ||
DIQ5 37 DIM(3) CTDATA PERRCD(1) | ||
|
||
C IQ5(1) DSPLY | ||
C SETON LR | ||
|
||
** IQ5 | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00154.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,18 @@ | ||
V* ============================================================== | ||
V* 31/10/2024 APU001 Creation | ||
V* 06/11/2024 APU001 Simplification | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * DS field declared as Array and CTDATA. In this case there are | ||
O * only the stars | ||
V* ============================================================== | ||
D DS | ||
DIQ5 37 DIM(3) CTDATA PERRCD(1) | ||
|
||
C IQ5(1) DSPLY | ||
C SETON LR | ||
|
||
** | ||
*SCPAccesso da script 00S | ||
*IQ2Accesso da Pgm £IQ2 18Q | ||
*SETAccesso da SCP_NAV 17T |