When you define keys for a file, you can define options for individual segments, such as case sensitivity. So if you define a key segment as uppercase, the key value will be uppercase but the field within the data would still be mixed when you read the data in the record. You could get the uppercase value using KEC(chan,kno), or by using UCS() on the field.