This calculates the QEI and Same as PLISN in an 036 report and writes a new file