-
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 #695 from smeup/bugfix/LS25000333/ds-like-to-string
Bugfix/ls25000333/ds like to string
- Loading branch information
Showing
4 changed files
with
92 additions
and
5 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
49 changes: 49 additions & 0 deletions
49
rpgJavaInterpreter-core/src/test/resources/db/metadata/MULANGTL.json
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,49 @@ | ||
{"name": "MULANGTL", | ||
"tableName": "MULANGTF", | ||
"recordFormat": "MULANGR", | ||
"fields": [ | ||
{ "fieldName": "MLSYST", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":20, "varying":false}} | ||
, { "fieldName": "MLLIBR", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLFILE", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLTIPO", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLPROG", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLPSEZ", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLPPAS", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLPDES", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":256, "varying":false}} | ||
, { "fieldName": "MLSQIN", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLSQFI", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLAAAT", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":1024, "varying":false}} | ||
, { "fieldName": "MLAAVA", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":1024, "varying":false}} | ||
, { "fieldName": "MLNNAT", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":21, "decimalDigits":9, "rpgType":"P"}} | ||
, { "fieldName": "MLNNVA", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":21, "decimalDigits":9, "rpgType":"P"}} | ||
, { "fieldName": "MLINDI", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":99, "varying":false}} | ||
, { "fieldName": "MLTEES", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":8, "decimalDigits":0, "rpgType":"P"}} | ||
, { "fieldName": "MLUSES", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLDTES", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":8, "decimalDigits":0, "rpgType":"S"}} | ||
, { "fieldName": "MLORES", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":6, "decimalDigits":0, "rpgType":"S"}} | ||
, { "fieldName": "MLASLA", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":10, "varying":false}} | ||
, { "fieldName": "MLASNR", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.NumberType","entireDigits":6, "decimalDigits":0, "rpgType":"P"}} | ||
, { "fieldName": "MLLIBE", | ||
"type":{"type":"com.smeup.rpgparser.interpreter.StringType","length":30000, "varying":true}} | ||
], "accessFields": [ "MLSYST", "MLTIPO", "MLPROG", "MLPSEZ", "MLPPAS"]} |
13 changes: 13 additions & 0 deletions
13
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00281.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,13 @@ | ||
V* ============================================================== | ||
V* 21/01/2025 APU002 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Definitions with LIKE referencing a DS must be defined as | ||
0 * strings with the same size as the DS | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, they were defined as DS themselves | ||
V* ============================================================== | ||
FMULANGTL IF E K DISK | ||
D ML E DS EXTNAME(MULANGTL) INZ | ||
D DS0002 S LIKE(ML) |