The classic condition that causes a SC03 is 1. Sub program loaded (not staticly linked) 2. Sub program opens files 3. Subprogram ends, gets freed, detached etc 4. Main program ends
This results in a SC03 because at step termination the system closes open files. It does this by following the DEB chain. Each DEB points to the associated DCB / ACB. The DCB address is needed by close. But the storage that contains the DCB has been fremained as a result of step 3 above. Hence the reference by close to the DEB DCB address takes an 0C4. But the step has allready ended ... Its in clean up, hence the C03. The rule is, If you (a program or supprogram) opens a file, close it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

