This property sets record length or maximum record length of the input record.
Syntax
object.MaxRecordLength = long
object
This specifies object expressions that define references to objects.
long
This sets record length or the maximum record length of the input record. The record length or maximum record length that can be set is from 1 to 32000 bytes.
Description
For binary files, the record length is specified when the record is in the fixed-length record format and the maximum record length of the record is specified when the record is in the variable-length record format.
For text files, the maximum record length that contains record separator is specified.
In the fixed-length record format, PowerBSORT fails when the actual record length and specified value are different. In the variable-length record format, PowerBSORT fails when the actual record length is longer than the specified value.
The record separator is set in the LineDelimiter property. The default value is CRLF in 2 bytes. When the code system of the input file is Unicode system (UCS-2 form), CRLF is 4 bytes. When calculating double byte characters such as Japanese, one character is processed as 2 bytes.
Note
In the binary file (variable-length record format) and the text file, if the record length specified by MaxRecordLength property is longer than the actual maximum record length, it is possible to process. However, when the record length that is longer than the actual maximum record length is specified by MaxRecordLength property, it becomes the factor of the performance deterioration according to the difference between a specified record length and the actual maximum record length.