Previous Topic: &PROMPT

Next Topic: &REMSTR


&QEXIT

Terminates the current procedure and all higher levels, and optionally ends the current processing window.

&QEXIT [ NOMSG | PMENU ]

&QEXIT provides a means of ending the current processing window from within an NCL procedure. If issued, the current procedure is terminated, all higher levels of nested procedures are ended without further processing, and the window under which the procedure was executing is ended. If the user has only one processing window, &QEXIT terminates the window and logs the user off.

Operands:

NOMSG

If the termination of the window results in a user log off, then this operand determines if the standard disconnect message

N20005 SESSION TERMINATED AT hh.mm.ss ON day dd-mon-year FOR USERID=userid

will be issued indicating that the session has terminated. If this operand is specified then the session is terminated without issuing the termination message.

PMENU

If you code the PMENU operand, &QEXIT terminates all processing in the current window but returns the window to the primary menu position rather than terminating the window environment completely.

Examples: &QEXIT

&IF .&INKEY = .PF04 &THEN &QEXIT PMENU
&IF .&COMMAND = .LOGOFF &THEN &QEXIT

More information:

&FLUSH

&END