SAMEKEY returns a bit string of length 1 indicating whether a record that has been accessed is followed by another with the same key.
|
Upon successful completion of an input/output operation on file x, or immediately before the RECORD condition is raised, the value accessed by SAMEKEY is set to '1'B if the record processed is followed by another record with the same key, and set to '0'B if it is not.
The value accessed by SAMEKEY is also set to '0'B if: