I have a SQLPlus work script that spools a file. I call this in one of two ways, from a web based interface, or from another SQLPlus prompt routine. If I call from the web based, I need this work routine to exit when complete. If called from from SQLPlus routine, I need it to return to that same routine when complete. If I use EXIT/QUIT, it exits SQLPlus completely without returning, If I don't, it leaves SQLPlus open. Any ideas or is this a catch22??