...
Property name | Property type | Description |
---|---|---|
type | String | The following data types can be specified:
Some config properties only apply to certain types. |
length | Number | Specifies the field length. It is required for most data types; exceptions are:
|
decimals | Number | Specifies the number of decimal positions. It required for packed and zoned fields. |
varying | Boolean | Specifies that a character field is of varying length; otherwise, the field will be a fixed length field padded with spaces. |
initValue | String/Number/Boolean/Array | Specified the field's initial value. |
dim | Number | Available to all data types. Using dim makes your field into an array. Arrays are 1-indexed. |
orderBy | String | Available to all types when dim element is used. Either of these values are required:
|
elements | Object | Required when using data-structure type. Read about data-structures below. |
qualified | Boolean | Available when using data structure type. |
special | String | Available to data-structure subfields. Acceptable values are: PSDS
INFDS
|
nullable | Boolean / String | Use this property to create null-capable fields.
|
likeRec | Object | Available when using a data structure type. This object requires two elements.
When likerec is specified, the data structure becomes qualified automatically. |
likeDS | String | Used on a data structure to specify the name of another data structure from which the configuration is derived. |
dataArea | String | Available to all data types, except from the pointer type. String pointing to data-area object. Example values:
|
statusDS | Boolean | Identifies a Status Data Structure. A Status Data Structure is automatically populated with information about the current Profound.js module and job. It is an easy way to retrieve information, such as the current IBM i job name, the current user id, etcand more. |
Examples
Example 1: packed decimal
...