Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Methods for filling data fields of a record

The various methods of the setByteField() family fill binary data (bytes) into a specified data field (defined by position and length) of a record.

These methods update the data length if the record was lengthened when the record’s data fields were filled. If the data is shorter than the selected data field, the rest can optionally be filled with a filler byte. If the data is longer than the selected data field, the length of the data transferred into the record buffer is limited to the length of the data field.

The methods of the setStringField() family fill text data (string) into a specified data field. If no encoding for converting text to data was specified by the user, the system-dependent standard encoding (in BS2000 the default value is OSD_EBCDIC_DF04_1) is used.

These methods update the data length if the record was lengthened when the record’s data fields were filled. If the data is shorter than the selected data field, the rest can optionally be filled with blanks. If the data is longer than the selected data field, the length of the data transferred into the record buffer is limited to the length of the data field.

The setKeyField() method fills a record’s key field with a concrete key value.