FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-61
CREATE Examples
ï‚·
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-171.) 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
3. Add the partitioning specifics:
-SET PART (1,$VOLnn, primary EXT, secondary EXT, "PR
altkeyvalue1"
-SET PART (2,$VOLnn, primary EXT, secondary EXT, "PR
altkeyvalue2"
4. Purge the existing alternate key file:
-PURGE $VOLnn.Subvol.first-alternate-keyfile
5. Create the new partitioned alternate key file:
-CREATE $VOLnn.Subvol.partitioned-alternate-keyfile
6. Load the newly created partitioned alternate key file:
-LOADALTFILE 0,$VOL.Subvol.filename, loadaltfile-command-
options
7. Restore file-creation attributes to their default settings:
-RESET
8. For each alternate key file you want to partition, repeat Steps 2 through 7.
ï‚·
To create a partitioned alternate key file that is not key-sequenced from an existing
alternate key file, use the ALTER command:
-ALTER filename,PART ( sec-partition-num , [\ node.]$ volume[
, pri-extent-size [ , sec-extent-size ] ] )
ï‚·
To create a partitioned alternate key-sequenced file from scratch, use the SET:
> FUP
-set type k
-set code 1001
-set ext (32,8)