Script files – IBM 3770 User Manual

Page 13

Advertising
background image

Demo User’s Guide

11

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 -sfilename command line
option of 3770Link SO or from the File | Run Script menu in 3770link
interactive mode. Additionally, you may use the -u switch 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

Advertising