Translate page

Sample Scripts

 


The JGS scripting command language can be entered in any text editor as well as being created in the JGS Script Editor program. All the same syntax rules apply.

The following sample performs login functions. It connects to a host, searches for VTAM or CICS logon screen, and prompts the user for the CICS userid login value.

connect "ibm.host"
label "VMLOGO"
lookfor "USERID"
key "enter"
looklist "WELCOME TO THE IBM[VTAMLOGO]Welcome to C.I.C.S.[CICSLOGO]"
label "VTAMLOGO"
key "tab"
type "cicsappl"
key "enter"
lookfor "Welcome to C.I.C.S"
label "CICSLOGO"
prompt "USERID"
key "tab"

The following sample performs multiple downloads from a host.

getfile "AAA1 txt,D:\test\One.txt,(ASCII CRLF)"
getfile "AAA2 txt,D:\test\Two.txt,(ASCII CRLF)"
getfile "AAA3 txt,D:\test\Three.txt,(ASCII CRLF)"

 

Â