GoToScript |
Top Previous Next |
Syntax - GoToScript <ScriptPathAndName> Where: <ScriptPathAndName> is a valid path and file name or a variable that contains a valid path and file name of a script that is accessible from the workstation on which EMUE is running. Description: This command immediately redirects processing to a new script. This command is designed to provide flexibility by allowing you to place the configuration information (SetStartup commands) in a separate script file from the logic. This will allow you to use multiple configuration files that contain a GoToScript command to the same script, so that you can run one script against multiple CICS’s.
Notes: This command cannot be used if the script has already executed a statement that sends data to or retrieves data from the mainframe application screen. All SetStartup settings in effect and all variables in memory at the time the GoTo statement is executed will be carried over to the second script. The SetStartup commands in the second script are ignored. Any relative paths will be relative to the original script location The original (first) file name will be the one displayed in the title bar, emails, and error messages. If there are no errors and the WaitAgain option is set to Yes, EMUE will reload the original script file, reprocess default values and SetStartup settings, and then begin waiting for (or processing) the next file. If there are errors, EMUE will not reload the original file. As a result, you may have to reload the original script file before restarting the script.
Note: This feature is not supported in EMUE Standard.
Sample: The following statement will begin running the script at “C:\EMUE\MEDICARE\PostPayments.emue” GoToScript “C:\EMUE\MEDICARE\PostPayments.emue”
|