CRTKEYF (Create Keyed File) Level 1.0 and Level 2.0

This command creates a keyed file on the target server.

Parameter name Source Target
ALCINIEX Sent Ignored
DCLNAM1 Not used Supported
DELCP Sent Supported
DFTREC Not sent Supported
DFTRECOP Not sent Supported
DUPFILOP Not sent Supported
FILCLS2 Not sent Ignored
FILEXNSZ3 Sent Supported
FILEXPDT4 Sent Supported
FILHDD Not sent Ignored
FILINISZ3 Sent Supported
FILMAXEX5 Sent Supported
FILNAM6 Program defined iSeries™ name
FILSYS Not sent Ignored
GETCP Sent Supported
INSCP Sent Supported
KEYDEF7 Sent Supported
KEYDUPCP Sent Supported
MODCP Sent Supported
RECLEN8 Sent Supported
RECLENCL Sent Supported
RTNCLS9 Not sent Supported
TITLE Sent Supported
1
Names are implementation defined.
2
Only KEYFIL is valid for CRTKEYF command.
3
iSeries default is 1,000 records.
4
iSeries default is *NONE.
5
iSeries default is 3.
6
Name formats are server defined.
7
iSeries maximum key length is 2000.
8
iSeries maximum record length = 2**15-2. (2 to the power of 15 minus 2)
9
Library QTEMP is used for temporaries.
Note: When a CRTKEYF request is received by an iSeries target server, the new keyed file reuses deleted records when it is created. If duplicate keys are allowed (KEYDUPCP=TRUE sent), the order of the duplicate keys is not guaranteed.