Programming with Reflection

image\rwnprg32.gif TelnetEnvironment property

 

Syntax

object.TelnetEnvironment
object.TelnetEnvironment = Value

Data type

String

 

Description

Returns (first syntax line) or specifies (second syntax line) a string that is passed to an "Exit program" on an AS/400 host when Reflection makes a Telnet connection. Exit programs run when a Telnet session is either initiated or terminated and use this format:

keyword=value; keyword=value; keyword=value

When you are using Auto SignOn (AutoSignon = True), Reflection automatically signs on to the host using the current values of the UserName and Password properties. You can set TelnetEnvironment to specify additional, non-default sign on options using any of the following keywords in the Exit program string:

Keyword

Sets

Equivalent Sign On Menu Option

IBMPROGRAM

Program to call

Program/procedure

IBMIMENU

Initial menu

Menu

IBMCURLIB

Current library

Current library

For example, the following statement specifies that when Reflection makes a Telnet connection using Auto SignOn, the host should display the menu called MAIN, run the program called QCL, and set QGPL as the current library:

Session.TelnetEnvironment = "IBMIMENU=MAIN;IBMPROGRAM=QCL;IBMCURLIB=QGPL"

You cannot change the value of this property while you are connected.

This property applies only to 5250 terminal sessions using Telnet.

Values

The default value is "".

This string can be up to 260 characters long.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this property