SET.ENCRYPTION.KEY.NAME |
![]() ![]() ![]() |
The SET.ENCRYPTION.KEY.NAME command updates a data file to reference a new name for an encryption key.
Format
SET.ENCRYPTION.KEY.NAME filename field, keyname ... SET.ENCRYPTION.KEY.NAME filename keyname
where
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.
Examples
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.
See also: Data encryption, CREATE.FILE, CREATE.KEY, DELETE.KEY, GRANT.KEY, LIST.KEYS, RESET.MASTER.KEY, REVOKE.KEY |