All Read and Write statements in Functions must use the return code IOSTAT (FORTRAN) | CAST Appmarq