-
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.
- Loading branch information
Showing
9 changed files
with
166 additions
and
8 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
20 changes: 20 additions & 0 deletions
20
rpgJavaInterpreter-core/src/test/resources/smeup/T02_A40_P08.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,20 @@ | ||
D A40_DS1 DS 30 | ||
D DS1_FL1 2 | ||
D DS1_FL2 10 | ||
D DS1_FL3 15 | ||
D DS1_FL4 3 0 | ||
|
||
D A40_DS8 DS | ||
D DS8_FL1 LIKE(DS1_FL1) | ||
D DS8_FL2 LIKE(DS1_FL2) | ||
D DS8_FL3 LIKE(DS1_FL3) | ||
D DS8_FL4 LIKE(DS1_FL4) | ||
D £DBG_Str S 50 VARYING | ||
|
||
D* DS definita con tutti campi in LIKE | ||
C EVAL DS8_FL1 = 'CN' | ||
C EVAL DS8_FL2 = 'CLI' | ||
C EVAL DS8_FL3 = 'AAAAAA' | ||
C EVAL DS8_FL4 = 333 | ||
C EVAL £DBG_Str=%TRIMR(A40_DS8) | ||
C £DBG_Str DSPLY |
20 changes: 20 additions & 0 deletions
20
rpgJavaInterpreter-core/src/test/resources/smeup/T02_A40_P09.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,20 @@ | ||
D A40_DS1 DS 30 | ||
D DS1_FL1 2 | ||
D DS1_FL2 10 | ||
D DS1_FL3 15 | ||
D DS1_FL4 3 0 | ||
|
||
D A40_DS9 DS | ||
D DS9_FL1 LIKE(DS1_FL1) | ||
D DS9_FL2 10 | ||
D DS9_FL3 LIKE(DS1_FL3) | ||
D DS9_FL4 3 0 | ||
D £DBG_Str S 50 VARYING | ||
|
||
D* DS definita con campi in LIKE e campi normali | ||
C EVAL DS9_FL1 = 'CN' | ||
C EVAL DS9_FL2 = 'CLI' | ||
C EVAL DS9_FL3 = 'AAAAAA' | ||
C EVAL DS9_FL4 = 333 | ||
C EVAL £DBG_Str=%TRIMR(A40_DS9) | ||
C £DBG_Str DSPLY |
18 changes: 18 additions & 0 deletions
18
rpgJavaInterpreter-core/src/test/resources/smeup/T02_A50_P08.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 @@ | ||
D £DBG_I_Fun S 10 Funzione chiamata | ||
D £DBG_I_Num S 7 0 Numero esecuzioni | ||
D £DBG_O_Str S 2560 VARYING Risultato | ||
|
||
D A50_A81 S LIKE(£DBG_I_Fun) | ||
D A50_N81 S LIKE(£DBG_I_Num) | ||
D A50_V81 S LIKE(£DBG_O_Str) | ||
|
||
D £DBG_Str S 150 VARYING | ||
|
||
D* DS con overlay e campi definiti singolarmente | ||
C EVAL A50_A81='Funzione' | ||
C EVAL A50_N81=1234567 | ||
C EVAL A50_V81='Funzione' | ||
C EVAL £DBG_Str= 'A50_A81('+A50_A81+')' | ||
C +' A50_N81('+%CHAR(A50_A81)+')' | ||
C + 'A50_V81('+A50_V81+')' | ||
C £DBG_Str DSPLY |
22 changes: 22 additions & 0 deletions
22
rpgJavaInterpreter-core/src/test/resources/smeup/T02_A50_P09.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,22 @@ | ||
D £DBG_I_Fun S 10 Funzione chiamata | ||
D £DBG_I_Num S 7 0 Numero esecuzioni | ||
D £DBG_O_Str S 2560 VARYING Risultato | ||
|
||
D A50_A81 S LIKE(£DBG_I_Fun) | ||
D A50_N81 S LIKE(£DBG_I_Num) | ||
D A50_V81 S LIKE(£DBG_O_Str) | ||
|
||
D A50_A91 S LIKE(A50_A81) | ||
D A50_N91 S LIKE(A50_N81) | ||
D A50_V91 S LIKE(A50_V81) | ||
|
||
D £DBG_Str S 150 VARYING | ||
|
||
D* DS con overlay e campi definiti singolarmente | ||
C EVAL A50_A91='Funzione' | ||
C EVAL A50_N91=1234567 | ||
C EVAL A50_V91='Funzione' | ||
C EVAL £DBG_Str= 'A50_A91('+A50_A91+')' | ||
C +' A50_N91('+%CHAR(A50_A91)+')' | ||
C + 'A50_V91('+A50_V91+')' | ||
C £DBG_Str DSPLY |
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
33 changes: 33 additions & 0 deletions
33
rpgJavaInterpreter-core/src/test/resources/smeup/T12_A08_P02.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,33 @@ | ||
D £DBG_Str S 3 | ||
* | ||
C MOVEL '1' CHOISE 1 | ||
C EXSR SEZ_T12_A08 | ||
* | ||
C MOVEL '2' CHOISE | ||
C EXSR SEZ_T12_A08 | ||
* | ||
C MOVEL ' ' CHOISE | ||
C EXSR SEZ_T12_A08 | ||
* | ||
C £DBG_Str DSPLY | ||
* | ||
C SETON LR | ||
*--------------------------------------------------------------- | ||
C SEZ_T12_A08 BEGSR | ||
*--------------------------------------------------------------- | ||
* | ||
C CHOISE CASEQ '1' CHOISER1 | ||
C CHOISE CASEQ '2' CHOISER2 | ||
C ENDCS | ||
* | ||
C ENDSR | ||
*--------------------------------------------------------------- | ||
C CHOISER1 BEGSR | ||
*--------------------------------------------------------------* | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str)+'1' | ||
C ENDSR | ||
*--------------------------------------------------------------- | ||
C CHOISER2 BEGSR | ||
*--------------------------------------------------------------* | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str)+'2' | ||
C ENDSR |