The KEY_LIST table function returns a list of Key Fields for the givne Physical or Logical File.
The function falls down when the Logical View is over multiple physical files. That is a multi-format file.
Need to enhance KEY_LIST To return the key fields for each record format of the identified file (physical or logical) rather than just the first/only record format.