Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Element nameElement typeDescription
typeString

There are the following types available in Profound.js

  • packed decimal
  • decimal
  • integer
  • unsigned integer
  • char
  • boolean
  • date
  • time
  • timestamp
  • pointer
  • data structure

Some config elements only apply to certain types.

lengthNumber

Required on all types other than

  • date
  • time
  • timestamp
  • pointer
decimalsNumber

Required on types

  • Packed decimal
  • Decimal
varyingBooleanAvailable to char type.
initValueString/Number/BooleanAvailable to all data types.
dimNumberAvailable to all data types. Using dim makes your field into an array. Arrays are 1-indexed.
orderbyString

Available to all types when dim element is used. Either of these values are required:

  • "ASCEND"
  • "DESCEND"
elementsObjectRequired when using data-structure type. Read about data-structures below.
qualifiedBooleanAvailable when using data structure type.
specialString

Available to data-structure subfields. Acceptable values are:

PSDS

  • "*status"
  • "*proc"
  • "*parm"
  • "*routine"

INFDS

  • "*file"
  • "*record"
  • "*opcode"
  • "*status"
  •  "*routine" 
nullableBoolean / String

Available to all data types, except from the data-structure type. Only use this attribute if you this field to be null-capable.

  • Pass in "true" to make the field null-capable. This option also allows you to assign 'null' to the field.
  • Pass in a "string" which references an Boolean variable to use that as the null-indicator and making the field null-capable.
likerecObject

Available when using a data structure type. This object requires two elements.

  • intrecname - String, name of record format from previously defined table.
  • fields - optional String value of "*key". If "*key" is specified, only key fields will be defined.

When likerec is specified, the data structure becomes qualified automatically.

likedsStringOnly available to the data-structure type. Provide the name of the data-structure which will be copied into the current definition.
dataAreaString

Available to all data types, except from the pointer type. String pointing to data-area object. Example values:

  • MYDTAARA
  • PRODLIB/DTAATA

...