IBM 3770 manual Script Commands, Sample Script Files, Demo User’s Guide

Models: 3770

1 20
Download 20 pages 62.47 Kb
Page 13
Image 13
Script Files

Demo User’s Guide

Script Files

To accommodate unattended operation, 3770Link utilizes an extremely powerful script language.

There is a corresponding script command for most of the menu items available in interactive mode. In addition there are numerous commands to manage error checking, error recovery, looping, and branching.

Script files can be executed by specifying the -sfilenamecommand line option of 3770Link SO or from the File Run Script menu in 3770link interactive mode. Additionally, you may use the -uswitch with 3770Link SO to manually enter script commands from the keyboard.

Script files are produced with a text editor or word processor. Script files are assumed to have an extension of ‘.s’.

Script Commands

For a list of the commands understood by 3770Link’s script processor and valid command line options, see the back of this guide.

Sample Script Files

The simple LU script file shown below attempts to connect up to three times, defines the printer to be a file named “testptr”, and sends a file named “jcl.txt”. If the send file completes normally, the script waits for a single file from the host and then disconnects and exits. This script file example assumes that a single LU is configured for the current connection and that automatic logon (INIT_SELF) has been enabled and configured for the single LU specified for this connection.

LOOPCOUNT 3

:conn_loop

CONN

11

Page 13
Image 13
IBM 3770 manual Script Commands, Sample Script Files, Demo User’s Guide