Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.5.3 BSRTKEY structure

The BSRTKEY structure is a structure to define key field in the sort processing or the merging processing.
When the specification of the key field is omitted, the entire record is considered to be a key field.
The size of the area when the area of BSRTKEY structure is secured can be calculated by using BS_KEYTABSIZE(n). BS_KEYTABSIZE(n) is a macro to calculate the size of BSRTKEY structure with 'n' occurrences of BSKEY structure.

Note

The key field is not omissible for text file CSV format and text file TSV format.

typedef struct {
    unsigned long    entry_no;
    BSKEY            key_entry[1];
} BSRTKEY;

BSRTKEY structure member

In the following, it explains about the member of the BSRTKEY structure.

entry_no

This specifies the number of the key field (BSKEY structure).
When 0 is specified, this means that the key field is omitted.

key_entry[n]

This specifies the key field.
For more information, refer to BSKEY structure.