sysseek and
seek do not print anything, it is
you calling
print. Those functions set the file position, they do not read the file (as others have said).
Looking at your code - forgive me if I am wrong here - you seem to be getting the file positions from the first file and using those same positions to find records in the second file. Unless each file has corresponding records of exactly the same length, then that will not work.
tell and
sysseek give the current byte offset position in the current file, that position will not (usually) apply to another file unless it is exactly the same format.