Enscribe Programmer's Guide
Example 5: Creating a Partitioned, Key-Sequenced File
This example shows how to create a key-sequenced file that will span six partitions. The record
format is the same as in “Example 1: Creating a Key-Sequenced File” (page 76)
timilecnalab-tnerrucsserddaeman
0
Byte Offset:
Primary-Key
Field
05124143143
The file is to reside on six volumes and be partitioned in this manner:
$PART0
$PART1
$PART2
$PART3
$PART4
$PART5
00
.
.
DA
.
.
HA
.
.
LA
.
.
PA
.
.
TA
.
.
Names Whose First Two
Letters are in the Range:
Reside On:
NOTE: If the file is an enhanced key-sequenced file (with more than 16 partitions), then the
primary partition is reserved for internal configuration information and does not contain data. In
this case, you must set the partition key value for the first secondary partition to zero.
To create the file with FUP, include SET PART commands to describe the partitioning.
> volume $part0.svol1
> fup
-set type k
-set code 1000
-set ext (50,20)
-set rec 150
-set block 4096
-set keylen 34
-set part (1,$part1,50,20,"DA")
-set part (2,$part2,50,20,"HA")
-set part (3,$part3,50,20,"LA")
-set part (4,$part4,50,20,"PA")
Creating Key-Sequenced Files 83