beautypg.com

Figure 8-7, Structure of a partitioned file, Figure 8-7. structure of a partitioned file – HP NonStop G-Series User Manual

Page 135

background image

Using FUP for Advanced File Management

Guardian User’s Guide 425266-001

8- 13

File-Creation Examples

Figure 8-7. Structure of a Partitioned File

20> TEDIT FILE3
VOLUME $VOL1.PARTFILE -- Set the default volume
-- and subvolume .
SET TYPE K -- Set the file type to
-- key-sequenced.
SET CODE 409 -- You can optionally specify a
-- a file code .
SET EXT (64,8) -- Set appropriate primary and
-- secondary extent sizes for
-- the application.
SET REC 128 -- Set the record length.
SET KEYLEN 20 -- Specify the primary-key
-- length (required for
-- key-sequenced files).
--
-- Specify the partitions, their volumes, primary
-- and secondary extent sizes, and the partial-key
-- values
--
SET PART ( 1, $VOL2, 64, 8, "HA" )
SET PART ( 2, $VOL3, 64, 8, "QU" )
-- Show the current parameter
SHOW
CREATE PART -- Create the file.

21 > FUP /IN FILE3/

007

CDT

.CDD

$VOL1.PARTFILE.PART

$VOL1

PARTFILE.PART

ALLEN, A.

BAKER, R.

DAVIS, J.

EDWARDS, S.

GOMEZ, G.

$VOL2

PARTFILE.PART

HAN, A.

KELLEY, S.

LOTHAR, K.

NYQUIST, G.

PARIS, P.

$VOL3

PARTFILE.PART

QUINCY, P.

ROX, G.

VARIO, J.

WEST, T.

ZIP, M.

This manual is related to the following products: