Figure 8-4. Key-Sequenced File Format - HP Guardian User Manual

Hide thumbs Also See for Guardian:
Table of Contents

Advertisement

Using FUP for Advanced File Management

Figure 8-4. Key-Sequenced File Format

Byte
Offset
[0]
[34]
name
address
Primary
Key
To create a file for records in the key-sequenced format, enter the following FUP
commands in a disk file, and then start a FUP process that takes input from this file.
This example shows the commands in FILE1.
20> TEDIT FILE1
VOLUME $VOL1.SVOL -- Set the default volume and
SET TYPE K
SET CODE 1000
SET EXT (16, 1)
SET REC 150
SET BLOCK 2048
SET COMPRESS
SET KEYLEN 34
SET IBLOCK 2048
SHOW
CREATE KEYSEQ
21 > FUP /IN FILE1/
[134]
[142]
[150]
phone
affi
l
CDT
004
.CDD
-- subvolume to the desired values.
-- Set file type as key-sequenced.
-- You can optionally specify a file
-- code to identify the file.
-- Set primary and secondary
-- extent sizes for the application.
-- Set record length and block size.
-- If desired, you can specify data
-- and index compression.
-- You must specify a primary-key
-- length for key-sequenced files.
-- You can also specify the size of
-- index blocks.
-- Display current parameter values.
-- Create the file.
Guardian User's Guide —425266-001
8- 10
File-Creation Examples

Advertisement

Table of Contents
loading

Table of Contents