-
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.
Fixed SCAN when is passed a literal as Factor 1.
- Loading branch information
1 parent
029b96e
commit 5f4f2de
Showing
4 changed files
with
63 additions
and
1 deletion.
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
46 changes: 46 additions & 0 deletions
46
rpgJavaInterpreter-core/src/test/resources/smeup/T15_A20_P04-06.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,46 @@ | ||
D A20_A20A S 20 INZ('!ABC!ABCDEF') | ||
D A20_N20R S 2 0 | ||
D £DBG_Str S 100 VARYING | ||
|
||
C SETOFF 202122 | ||
C '!':1 SCAN A20_A20A A20_N20R 20 | ||
C EVAL £DBG_Str='RicercaDaPos01(' | ||
C +%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN20)+');' | ||
C '!':1 SCAN A20_A20A:2 A20_N20R 21 | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str) | ||
C +' RicercaDaPos02('+%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN21)+');' | ||
C '!':1 SCAN A20_A20A:5 A20_N20R 22 | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str) | ||
C +' RicercaDaPos05('+%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN22)+');' | ||
C SETOFF 20 | ||
C '!':1 SCAN A20_A20A:7 A20_N20R 20 | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str) | ||
C +' RicercaDaPos07('+%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN20)+');' | ||
C £DBG_Str DSPLY | ||
|
||
C SETOFF 202122 | ||
C '!ABCD' SCAN A20_A20A A20_N20R 20 | ||
C EVAL £DBG_Str='RicercaDaPos01(' | ||
C +%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN20)+');' | ||
C '!ABCD':2 SCAN A20_A20A A20_N20R 21 | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str) | ||
C +' RicercaDaPos01('+%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN21)+');' | ||
C '!ABCD':5 SCAN A20_A20A A20_N20R 22 | ||
C EVAL £DBG_Str=%TRIM(£DBG_Str) | ||
C +' RicercaDaPos01('+%CHAR(A20_N20R) | ||
C +')_Trovato('+%CHAR(*IN22)+');' | ||
C £DBG_Str DSPLY | ||
|
||
|
||
C SETOFF 20 | ||
C '!':1 SCAN '?!/' NW20_N20 2 0 20 | ||
C EVAL £DBG_Str='RicercaDaPos01(' | ||
C +%CHAR(NW20_N20) | ||
C +')_Trovato('+%CHAR(*IN20)+');' | ||
C £DBG_Str DSPLY |