Session - switch sessions

Return to Introduction  Previous page  Next page

session(session_number | session_name)

Where:

session_numberis the session number. Session numbers 1 to 99 are valid. session_number may be a variable containing a valid session number.
session_nameis the session name. session_name may be a variable containing a valid session name. If you are using a session name, the session must be running when the command is executed or an error occurs.

 

 

The session command switches sessions while a script is processing. A script continues processing in the same session until a session command switches the script to another session.

Examples

session(1)

session(2)

session("mainframe2")

session($SESSION)

 

See Also:

 

Script Command Summary

Script Variables

Using the Scripting Language


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