File Utility Programming (FUP) Reference Manual

FUP Commands
File Utility Program (FUP) Reference Manual523323-015
2-63
CREATE Examples
CREATE Examples
To create a non-partitioned unstructured file on a disk drive in a disk drive
enclosure:
-SET TYPE U
-SET EXT (2,20)
-SET REC 80
-CREATE TEST
To create a partitioned unstructured file where one or more partitions reside on a
disk drive in a disk drive enclosure.
-SET TYPE U
-SET EXT (14,42)
-SET REC 80
-SET PART (1,$FIBRE,14,42)
-CREATE TESTPART
To create a key-sequenced file named MYFILE in the current default volume and
subvolume with the file-creation attributes that are specified by the SET
commands:
-SET TYPE K
-SET REC 80
-SET KEYLEN 8
-CREATE MYFILE
If you include create-param in the CREATE command, the values you specify
override the current file-creation attributes. (For more information, see SET on
page 2-177.) To override the current attributes and create a relative file with a
record length of 10, define an alternate key on the first five bytes of the record and
have the alternate key reside in the alternate-key file SECFILE:
-CREATE MYFILE, TYPE R, REC 10, ALTKEY ("AA", FILE 0, &
-KEYLEN 5) , ALTFILE (0, SECFILE)
To create a partitioned alternate key-sequenced file from the existing alternate key-
sequenced file, add a partition to the existing file:
1. Ensure the file is closed:
-LISTOPENS FILE
2. Set file-creation attributes to match those of the existing file:
-SET LIKE $VOLnn.Subvol.first-alternate-keyfile
Note. DP will round the extent sizes up to multiples of 14 so the actual extent information
will be ext (14,28), not ext (2,20) as specified.
Note. DP2 requires that the pri-extent-size and sec-extent-size of partitioned
unstructured files explicitly be multiples of 14.