COUNTKEYS Example
IFILE
StartKey
INIT
"00000"
EndKey
"99999"
.
OPEN
IFILE,...
...
COUNTKEYS
IFILE FROM StartKey TO EndKey GIVING KeyCount
Assuming the ISAM file has a five digit key, the COUNTKEYS instruction would return the number of keys in the file.