Connect - connect to a host using a named session

Return to Introduction  Previous page  Next page

Connect("session name")

Where:

session nameis the name of a session. session names are case sensitive. Enclose the session name in double quotation marks ("") if it contains embedded spaces or commas. This parameter may be a variable containing the session name.        

 

 

The Connect command connects the specified session. Session names can be created and saved in the Connect to Host dialog box. The Session Name group box in the Connect to Host dialog box contains a drop-down list of the named sessions. Open the Host menu and select Connect... to display the Connect to Host dialog box. The Connect command starts the new session using the next available session number.

Examples

Connect("Host 1")

Connect("Host 2")

Connect(Host_2)

Connect($SESSION)

 

Sample Script

' This script connects three sessions.

'        

Connect("zSeries")

Connect("iSeries")

Connect("unix")

exit

 

See Also:

 

Script Command Summary

Script Variables

SSLConnect

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.