define variable i as integer no-undo.
for each _file no-lock where _file-num > 0 and _file-num < 10000:
i = i + 1.
end.
message "set -tablerangesize to at least " i.
i = 0.
for each _index no-lock:
i = i + 1.
end.
message "set -indexrangesize to at least " i.