索引付きファイルの主キーを定義するには、SELECT 句で RECORD KEY IS 句を使用します。
select idxfile assign to "idx.dat" organization is indexed record key is idxfile-record-key.