I think you need to show us more, Steve. Such as, what is the base register that ENDIFILE is using to address "flags", and do both A and B have that register set to the same value when they issue their GETs?
-- Walt Farrell IBM STSM, z/OS Security Design