Batch Mode

A dialog session captured with a LOG command can be replayed, i.e. repeated with identical input, at any time in a connection. User input is then not taken from the keyboard, but from the LOG file. To replay a captured dialog session, enter the command RES (Restore).

The RES command has four variations, each causing a different type of replay.

Restore Version 1: Batch Mode

In Batch Mode the dialog session to be replayed runs automatically, with no input required from the user.

RES [file | lib ( [t/] element) | element | C] [, d|ORIG]

file Name of the LOG file from which the dialog input will be replayed.

The specified file must be accessible from the basic task in CFS.

lib ( [t/] element)   Name of a PLAM library and the respective element. The ISAM file created during the logging must first have been ADDed to the library. Element type S will be assumed, unless otherwise specified. In order to run the dialog, a temporary file is created from the library element.

element If the LOG file specified in the RES command does not exist in the CFS basic task, CFS assumes that the name refers to an element in the CFS-userlib. When processing the RES command, CFS attempts to select and process the element 'S/element' from the CFS-userlib. For a full description of the CFS-userlib, , see Chapter 21.

C Continue. A RES process suspended by a STEP BREAK is continued at the interrupt point. Suspending the RES process can be predefined during logging by entering the command LOG BR.

d Time Delay Factor.

The replayed entries from the LOG file are passed to the communication partner with a delay. This delay allows the dialog to be replayed more slowly than it was originally recorded. The dialog session rerunning automatically on the screen can thus be followed by the user at a more comfortable pace.

n: 0  - 100 Delay factor in seconds.

n: 100 - 999 Delay factor in milliseconds.

Standard: n=0. The entries are passed to the communication partner without any delay.

DELAY=ORIG The entries from the LOG file will be replayed at exactly the same speed as when they were first captured with the LOG command. The original delays and pauses between entries can thus be accurately simulated.

K2 In Batch Mode, pressing the K2 key results in the Restore switching to Step Mode (see below). By entering a delay factor, the dialog replay can be slowed down such that it is possible to press the K2 key between any two dialog steps.

Example:

RES CFS.LOG,2

Entries from the LOG file CFS.LOG are passed to the communication partner with a 2 second delay.

Notes:

The RES command can be entered in Mask Mode as well as Line Mode. In Mask Mode, the RES command should be entered in the first overwriteable field. An exception to this is in EDT, where the RES command should be entered in the 24th line (command line). No other field may be modified in the same mask.

For those screen masks that cannot hold the RES command in the first overwriteable field, the LSP key or Shift + Reset can be used to clear the screen and write the RES command in Line 1, Column 1. Usage of the LSP key is always possible in connections, even with formats that normally prevent clearing the screen buffer.

The command RES is also applicable in a DO procedure if the statement /WR-T 'RES...' appears on the screen as comment.

Entering 'RES ' (RES + space, without a filename) will start a Restore process using the file specified in the last LOG/RES command.

A dialog session that is replayed with Restore can be saved to a printable file by means of the Hardcopy command (HC). This is equally valid in the Phantom Mode of the Restore process (see below). For further information, also see page 9- "Hardcopy Mode in Connections".

Displaying the input provided by the RES process can be suppressed by SETSW ON=4 in the CFS basic task.

A dialog session can only be replayed using Restore if it was captured with option I (Input [= Standard] ), or IO (Input + Output).

By setting an option, the system administrator can generate CFS such that all commands destined for the Connection Handler must be preceded by the escape symbol. Activating the Restore process is done in this case by ^RES. To check if the ^ option is set, display the CRD mask (CRD command).