Using Global Variables

You can use global variables to handle host screens, such as inactivity lockout screens, where a task input is required before the task can continue. By renaming your task input GLOBAL_xxxx, when you record and define a global screen that dismisses the inactivity lockout, you can change the value/expression associated with the task input on that screen to GLOBAL_xxxx.

example screen

For example, you might have a task input named password that is associated with a field called HostField1 in Step2, Screen2. Rename HostField1 to GLOBAL_password. Now, when you record and define the global screen that dismisses the inactivity lockout screen, you can change the value or expression associated with the task input on that screen to GLOBAL_password.

For more information on task input properties, see Task and Task Step Property Descriptions.

To create a global variable
  1. Rename the host field where the task input is first used to GLOBAL_xxxx.

  2. Use the new field name (GLOBAL_xxxx) as a variable in expressions.

    The global variable behaves like any other variable does. All global variables can be used on other tasks in a current session. Global variables remain in scope until the session is disconnected.

Related Topics
Bullet Handling Special Case Screens, Overview
Bullet Task and Task Step Property Descriptions
  Attachmate