Strovent SystemsSign in
App guide

Record a TSO logon script

Record the userid, password and Enter keys of a TSO logon on a 3270 host as a script, keep the password out of it, and make it run when the session connects.

A script can type your userid, ask for your password, and press Enter for you each time you connect. The password is never saved in the script.

Record it

  1. Connect to the host and wait for the logon screen.
  2. Open the sidebar, choose Sessions, then Edit… next to Scripts, and tap Record new. Or press Alt+R. Pressing Alt+R again stops the recording.
  3. Do the logon by hand: type your userid, move to the password field, type the password, and press Return. Press Enter again at any "***" or message screen you normally clear.
  4. Stop recording. The script is saved with a name like "Recorded 9:41:07 AM" for this configuration, and the script editor opens.

The recorder turns what you do into steps:

  • Before the first input, and again after each Enter or PF key, it adds a Wait field step for the position where you typed. When the script runs, it waits until an input field is there, then moves the cursor to it.
  • Text typed in a visible field becomes a Type step.
  • Moving the cursor with a tap, Tab or the arrows becomes a Cursor step.
  • Typing in a hidden field, such as the password field, becomes a single Password prompt step. The characters you typed are not stored.
  • The keys you press, such as Enter, become Key steps.

What runs

When the script reaches the Password prompt step, the app asks for the password on a secure prompt. You type it each time, and the app types it into the field. A Type step must not hold a password. The editor says so next to the text box.

Each wait has a timeout of 15000 ms (15 seconds) by default. You can change it for a step in the editor. If a wait times out, the script stops with an error that says what it was waiting for.

Make it run on connect

  1. In the script editor, set Auto-run on to Specific… with this configuration turned on, or to All configurations.
  2. In the configuration's Auto-run scripts section, make sure Run on new sessions is on. It is on by default.

To skip it once, tap Connect without auto-run. See Auto-connect and auto-run.

If it stops

  • "would land on a protected position" means the cursor was not in an input field when a Type step ran. Add a Wait field or Cursor step before it, with the row and column where the field starts.
  • A wait timed out. The host was slower than the timeout, or showed a different screen, for example a password-change prompt or "userid already logged on". Run the logon by hand, then adjust the steps.
  • The host screen changed. Open the script and check each step. They are numbered in the order they run, and you can move or delete any of them.

For the screens the logon goes through, see TSO logon.

Spotted a mistake? Email [email protected].