Product Documentation

c-treeRTG V2 Update Guide

Previous Topic

Next Topic

ctutil -unload option -k to read/write records in index order

The ctutil -unload option exports data to a sequential file. This modification introduces a new option, -k, to the ctutil -unload command to read (and in turn write) records in the specified index order. To read records in primary key order, specify -k=1. If not specified, records are read using default key (primary key).

Usage

The new usage for ctutil -unload command is as follows:

ctutil -unload file seq_file [-b|t] [-v[2|4|8][n|x]] [-k=index]

  • file - File name without extension
  • seq_file - The destination file name including the path
  • -b - Destination file is in binary sequential format (default)
  • -t - Destination file is in line sequential format
  • -p - Destination file is in BTRV ASCII format
  • -v - Destination file has variable-length records

    [2|4|8] - record length is stored in 2 or 4 (default) or 8 bytes

    [n|x] - record length is stored in COMP-N (default) or COMP-X format

  • -k=index - Reads and writes records in specified index order (-k=1 for the primary key)

TOCIndex