I wished I asked the list a long time ago on how to do this. I used the TESTAUTH macro for a long time to determine the mode entered. However this invokes an SVC and to avoid the overhead I now use my own macros that sets a flag in memory as well as mod so all I need to do is check the flag.
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN