The problem is that the error number in the log file appears as XXXX and not as a number.
SIR FILE DUMP FILENAME = "c:\sir2004\alpha\COMPANY.dat" / RECTYPES = EMPLOYEE Add Records INPUT = "c:\sir2004\alpha\COMPANY.dat" / LOGFILE = "log.txt" / 1 1Jan 19, 200807:51:29 1XXXX