283
RENAME..INDEX Directive
Rename Keys in Keyed File
Format
RENAME filename$ INDEX {keynumber|keyname$} TO {newkeyname$} [,ERR=stmtref]
Where:
filename$
Name of the file from where the key will be renamed. String
expression.
keyname$
Name of the key to rename (if assigned). String expression.
keynumber
Key number (KNO value) to rename.
newkeyname$ New key name.
stmtref
Program line number or label to transfer control to.
TO
Mandatory keyword, not case-sensitive.
Description
The RENAME..INDEX directive allows you to rename, or name, keys. When you
need to modify existing names or add key names to an older Keyed file, use the
RENAME..INDEX directive to change the names.
Examples
RENAME "cstfile" INDEX 1 TO "Customer_no"
RENAME "cstfile" INDEX "#2" TO "Customer_Name"
See also