Using the Display Interface


BlueZone Scripts

Record a BlueZone Script

This procedure is intended to provide a step-by-step outline to demonstrate how an end user can use BlueZone to record a script that can then be used over and over again.

The example used in this script shows how you can automate the process of logging on to TSO on an IBM 3270 Mainframe and automatically navigating to the ISPF Primary Option Menu.  Note that logging on to TSO requires a password.  There will be more on how passwords are treated during script recording later in this procedure.

Script Recording

  1. Launch a BlueZone Mainframe Display session and connect to your host.

  2. Form the BlueZone MenuBar, select Script::Record or, click the Record Script icon on the ToolBar.

  3. A standard Windows file dialog be displayed as shown here:

  1. Give the script a name like TSO Logon and click the Save button.

NOTE  Everything you do from now on will be recorded by BlueZone.

  1. Log on to TSO and navigate to the place where you want the script to stop recording.  This can be as many or few screens as you like.  I stopped on the ISPF Primary Option Menu as shown here:

  1. Stop the script recording by selecting Script::Stop from the BlueZone MenuBar or click on the Stop Script icon on the ToolBar.

  2. Your script is recorded.

Script Playback

To play your script, follow these steps.  Make sure that you are logged off the host before proceeding.

  1. Select Script::Play from the BlueZone MenuBar or click the Script Play icon on the ToolBar.

  2. A standard Windows file dialog will be displayed.

  3. Select the script that you just created and click the Open button.

  4. At this point your script will run.  If your script required a password during the recording process, a dialog box will pop up as shown here:

This happens because the BlueZone Script Recorder is smart enough to detect that a password field was encountered during the recording process and automatically substituted a dialog box for the password.  The BlueZone Script Recorder did not record the password that you typed during the recording process.

IMPORTANT!  This is a safety feature designed to prevent end users from recording scripts that contain passwords.

  1. Enter the password and press the Enter key.  The script will continue until it gets to the place where you stopped recording.

NOTE  If the Script Status Window (as shown below) was displayed while the script was running, it's because the Display Script Status Window checkbox is checked.

The purpose of this window is to aid during the development of BlueZone scripts.  If you do not want this window being displayed during script playback, you can disable it by following these steps:

  1. Select Script::Properties from the BlueZone MenuBar.  The Script Properties dialog will be displayed as shown here:

  1. Un-check the Display Script Status Window checkbox.

  2. Click the OK button.

From now on, when you play a BlueZone script, the Script Status Window will no longer be displayed.


Related Topics:

Play a Script

Auto-Play a Script

Change Script Properties

Editing a Script