userEditCodes
The values for each code should match exactly what is configured on your IBM i system via WRKEDTD.
Description
Set this option to an object containing definitions for IBM i user-defined edit codes ("5" through "9"), as configured via the WRKEDTD command on your IBM i system.
These definitions are used at both conversion time (DDS to PUI JSON) and at runtime when RPG programs call %EDITC() with a user-defined code.
Each key is a single digit ("5" through "9"). The value is an object with the following properties:
Property | Description |
|---|---|
| Integer portion mask string (commas indicate thousands separators). |
| Decimal point character ( |
| Fractional digits mask string. |
| Fill/pad character (e.g., |
| Currency symbol string (e.g., |
| Boolean. Whether to display zero values. |
| Sign indicator for negative values ( |
| Suffix appended to positive values (e.g., |
| Constant string prepended to the formatted value. |
| Constant string appended to the formatted value. |
Example
userEditCodes: {
"8": {
integerMask: " , , , , 0 ",
decimalPoint: ".",
fractionMask: " ",
fillCharacter: "",
currencySymbol: "$",
editZeroValues: true,
negativeStatus: "-",
positiveStatus: " ",
leftConstant: "",
rightConstant: ""
},
"5": {
integerMask: " , , , , 0",
decimalPoint: ".",
fractionMask: " ",
fillCharacter: "",
currencySymbol: "",
editZeroValues: false,
negativeStatus: "CR",
positiveStatus: "DR",
leftConstant: "",
rightConstant: ""
}
}