Connect Terminal Action—Setting Properties

The Connect Terminal action is used to connect to a terminal using a specified connection type and emulation type. It establishes a new terminal session which can be used in subsequent terminal steps. Terminal actions are used to automate legacy systems without the use of terminal emulation software.

To set Connect Terminal properties

  1. From the Task Builder Available Actions pane, open the Terminal folder and double-click the Connect Terminal action or drag it into the Steps pane.

  2. In the Connection type box, select the connection type from the drop-down list.

  3. For TCP/IP or SSH connection types:

  4. For COM1 or COM3 connection types:

  5. In the Session name box, use the default entry unless you have already created one or more terminal sessions in the task. If you have multiple terminal sessions, give each one a unique name, such as TermSess1, TermSess2, etc. The terminal session name is used to identify the terminal connection in other task steps.

  6. If you want to display a window at runtime showing the results of the terminal transaction, click Show terminal window. This selection is commonly used for debugging. Ordinarily the terminal connection runs in the background.

  7. Click the Advanced tab.

  8. In the Emulation type box, select the terminal emulation standard. (Consult your system administrator or developer if you do not know what standard to use.)

  9. For TN3270 or TN5250, enter the resource in the Resource Name box.

  10. If a prompt is used by the target terminal to indicate it is ready for input, enter it in the Default prompt box. When the step runs, AutoMate will look for this prompt to appear before going on to the next step. (You must also select Wait for prompt. See Step 11.)

    If the default prompt may be different from one task run to the next, you can use a variable or expression in this box by clicking the Insert Expression/Variable button and using the Expression Builder to select it. A variable must be created and populated in earlier task steps. Click Regular expression, so that AutoMate interprets it as an expression rather than a literal string.

  11. To specify the time that AutoMate should wait for the default prompt, click Wait for default prompt and enter the time to wait in milliseconds in the box below. If this is not selected any default prompt entered will be ignored.

  12. To set the Description tab properties, refer to Description Tab Options.

  13. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  14. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Connect Terminal Action