I was wondering if a program that is made resident by including the RESIDENT clause in the PROGRAM-ID paragraph will remain in memory after it exits using an EXIT PROGRAM. If not, can I exit from the program and remove it from memory? I need to shield a program from a CANCEL ALL in a called program.
I have a BIS service program calling another program that is calling a final program that has a CANCEL ALL in it that is resetting the XML object in the initial service program. This is pretty highly undesirable as BIS core dumps and dies when trying to do an XML EXPORT FILE.