The SET.ENCRYPTION.KEY.NAME command updates a data file to reference a new name for an encryption key.
SET.ENCRYPTION.KEY.NAME filename field, keyname ...
SET.ENCRYPTION.KEY.NAME filename keyname
The SET.ENCRYPTION.KEY.NAME command is intended for use where an encrypted file is moved to a system on which the original encryption key name is already in use but with a different key value. It updates the encryption key information stored in the file but does not make any changes to the data records.
The first form of the SET.ENCRYPTION.KEY.NAME command updates the encryption key for one or more fields within a file that uses field level encryption.
The second form of the SET.ENCRYPTION.KEY.NAME command updates the encryption key for record level encryption.
SET.ENCRYPTION.KEY.NAME CUSTOMERS CCARD,CARDNO
The above command sets the encryption key for the CCARD field of the CUSTOMERS file to be CARDNO.
SET.ENCRYPTION.KEY.NAME CUSTOMERS CKEY
The above command sets the record level encryption key for encrypts the CUSTOMERS file to be CKEY.
Data encryption, CHANGE.KEY.PASSWORD, CREATE.FILE, CREATE.KEY, CREATE.SECURE.KEY, DELETE.KEY, DISABLE.KEY, DISABLE.KEY (QMBasic), ENABLE.KEY, ENABLE.KEY (QMBasic), ENCRYPT.FILE, GRANT.KEY, LIST.KEYS, RESET.MASTER.KEY, REVOKE.KEY, UNLOCK.KEY.VAULT