Returns the mode in which the script procedure is running.
Returns a value indicating the mode in which the script procedure is running (that is, how it was started). One of the following values is returned:
Indicates that the procedure was started at session start time. Parameters coded in the SCRIPT NCL PROC field of the Logon Details panel are passed as &1, &2, &3, and so on.
Indicates that the procedure was started at forced session end time. The procedure is driven under the following conditions: the user ends the window from which the MAI-FS session was created, or logs off from the product region, without logging off the application. The user is canceled by an OCS operator; the user's reconnect time limit expires; the session with the user's terminal is lost and session reconnect is disabled by the installation. Parameters coded in the SCRIPT NCL PROC field of the Logon Details panel are passed as &1, &2, &3, and so on.
Indicates that the procedure was started by a .S session skip command entered by the user on a screen displayed on behalf of this session or the SCRIPT command. Words in the same input field as the .S command or in the DATA operand of the SCRIPT command are passed as parameters &1, &2, &3, and so on, to the procedure.
Examples: &MAISMODE
&IF &MAISMODE = END &THEN &END &IF &MAISMODE = SKIP &THEN &GOTO .PROCESS &GOSUB .MODE_&MAISMODE
Note: The script procedure must be able to handle being driven under all three of the above conditions. If no processing is to be performed for any of the conditions, the procedure should end.
| Copyright © 2009 CA. All rights reserved. |
|