NewSession
Launches a new emulation session.
Parameters
SessionTypeVal
1 – Mainframe; 2 – iSeries; 3 – VT
ConfigFileStr
Optional: Name of the profile containing the session settings.
LockKeyboardVal
Optional: If True, locks the user's keyboard until a call to LockKeyboard( False ) is made.
Returns
String containing the session's short name session identifier to be used with the Connect and/or DeleteSession methods.
Example
Set bzhao = CreateObject("BZWhll.WhllObj")
SessName = bzhao.NewSession( 1, "profile.zmd" )
bzhao.Connect SessName
bzhao.SendKey "logon user<Enter>"