/
Sample Scripts

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)"

 

 

Related content

Automating Tasks
Automating Tasks
Read with this
Scripting Usage Instructions
Scripting Usage Instructions
More like this
Script Syntax and Guidelines
Script Syntax and Guidelines
More like this
Introduction to Scripting
Introduction to Scripting
More like this
Script Examples
Script Examples
More like this
Supported Script Commands
Supported Script Commands
More like this