Previous Topic: Control Data

Next Topic: Edit a Script

Record a Script

You can record your keystrokes by selecting the Record Keystrokes option. This causes the Web Option server to start the keystroke recording module and refresh the screen. In addition, the Script Selection DDL displays **RECORDING** as its top (selected) option. You can then enter data and use command keys as usual. After you finish recording the keystrokes, select the Save Script option to save the recorded keystrokes as a script. You are prompted for a script name and a textual description.

The script is written to your own member in YSCRIPT. By default, all recorded scripts have the following attributes:

  1. The %%SCREEN: control-data-identifier is automatically set to the screen on which the Record Keystrokes option was selected, irrespective of the screen on which the user has selected the Save Script option.
  2. The %%SCPRCV: and %%SCPERR: control-data-identifiers are set to the values of the current YSCPRCV and YSCPERR Web Option control values.

At any time while recording keystrokes, you can use the Pause Recording and Resume Recording functionality to pause and resume recording. However, you must ensure if you pause keystroke recording, you can only restart recording on the same screen from which you selected the Pause Recording option, otherwise undetermined results can occur.

Note: To support recording that involves navigating away from the initial screen on which the recording was started, ensure the XSCPLST tag exists in the initial and the final screen.