Using the Exit option (X) with the jump function
If the current primary options panel has been coded to select the EXIT command for the X selection, you can use the jump function. Enter =X from any panel to immediately leave the current primary options panel. If there is only one ISPF logical screen active and that logical screen has only one primary option panel in effect, =X exits ISPF entirely.
ISPF recognizes =XALL as an extended version of =X. When you enter =XALL, ISPF propagates an =X to all active logical screens to request the termination of all logical screens and the exit of ISPF entirely.