• | Another Set Session Parameters call sets a new value |
• | Reset System (function 21) is called |
Parameter | Description |
---|---|
Data String | String containing the desired session options to set. If more than one session option is set, use a comma or space to separate the session options. See “Remarks” section for an explanation of the session options. |
Data Length | Explicit length of Data String (EOT cannot be used). |
PS Position | NA |
Parameter | Description |
---|---|
Data Length | Remains the same as the call value if all session options in Data String are valid. If Data String contains any invalid session options, Data Length is set to the number of valid session options contained in Data String. |
Code | Description |
---|---|
WHLLOK | All of the requested session options set as specified. |
WHLLPARAMETERERROR | Your Windows HLLAPI application is currently not connected to a session.Data String contains one or more invalid session options. |
WHLLSYSERROR | The function failed due to a system error. |
Function name (function number) | Session options |
---|---|
Connect Presentation Space (function 1) | CONLOG/CONPHYS, WRITE_SUPER/WRITE_WRITE /WRITE_READ/WRITE_NONE /SUPER_WRITE/READ_WRITE, NOKEY/KEY$nnnnnnn |
Send Key (function 3) | STRLEN/STREOT, EOT=c, ESC=c, AUTORESET/NORESET, RETRY/NORETRY |
Wait (function 4) | TWAIT/LWAIT/NWAIT |
Copy Presentation Space (function 5) | NOATTRB/ATTRB, EAB/NOEAB, XLATE/NOXLATE, DISPLAY/NODISPLAY |
Search Presentation Space (function 6) | STRLEN/STREOT, EOT=c, SRCHALL/SRCHFROM, SRCHFRWD/SRCHBKWD |
Copy Presentation Space to String (function 8) | NOATTRB/ATTRB, EAB/NOEAB, XLATE/NOXLATE, DISPLAY/NODISPLAY |
Query Sessions (function 10) | NOCFGSIZE/CFGSIZE |
Copy OIA (function 13) | OLDOIA/NEWOIA |
Copy String to Presentation Space (function 15) | STRLEN/STREOT, EOT=c, EAB/NOEAB |
Pause (function 18) | FPAUSE/IPAUSE |
Search Field (function 30) | STRLEN/STREOT, EOT=c, SRCHALL/SRCHFROM, SRCHFRWD/SRCHBKWD |
Copy String to Field (function 33) | STRLEN/STREOT, EOT=c, EAB/NOEAB |
Copy Field to String (function 34) | NOATTRB/ATTRB, EAB/NOEAB, XLATE/NOXLATE, DISPLAY/NODISPLAY |
Get Key (function 51) | ESC=c, TWAIT/LWAIT/NWAIT |
Send File (function 90) | STRLEN/STREOT, EOT=c, NOQUIET/QUIET, TIMEOUT=0/TIMEOUT=c |
Receive File (function 91) | STRLEN/STREOT, EOT=c, NOQUIET/QUIET, TIMEOUT=0/TIMEOUT=c |
Connect PM Window Service (function 101) | WRITE_SUPER/WRITE_WRITE /WRITE_READ/WRITE_NONE /SUPER_WRITE/READ_WRITE |
Session option | Description |
---|---|
STRLEN | Data Length explicitly defined. This is the default setting. |
STREOT | Data Length not necessarily defined; Data String parameter on a function call ends in an EOT character. |
Session option | Description |
---|---|
EOT=c | Set the EOT character to “c,” which must be a 1-byte literal character. There must not be a space on either side of the equal sign (“space” is not a valid EOT character). The default EOT character is binary zero. |
Session option | Description |
---|---|
SRCHALL | If using Search Presentation Space (6), search the entire Host session presentation space. If using Search Field (30), search the entire field. SRCHALL is the default setting. |
SRCHFROM | When session option SRCHFROM is set, start search at the end (of the field or Host session presentation space) and stop at specified PS Position. |
Session option | Description |
---|---|
SRCHFRWD | If session option SRCHFRWD is set, start search at specified PS Position and stop at the end (of the field or Host session presentation space). |
SRCHBKWD | If session option SRCHBKWD is set, start search at the end and stop at specified PS Position. |
Session option | Description |
---|---|
NOATTRB | Translate EBCDIC bytes that do not have ASCII equivalents to spaces (ASCII 20h). NOATTRB is the default setting. |
ATTRB | EBCDIC bytes that do not have ASCII equivalents are not translated, but are passed as their original EBCDIC values. |
Session option | Description |
---|---|
FPAUSE | SEND and RECEIVE messages are displayed. |
QUIET | SEND and RECEIVE messages are not displayed. |
Session option | Description |
---|---|
TIMEOUT=0 | Set the timeout to 30 seconds. There must not be a space on either side of the equal sign; the value is a zero. TIMEOUT=0 is the default setting. |
TIMEOUT=c | Set the timeout to a specific period. A CTRL+BREAK is issued automatically after the specified period. There must not be a
space on either side of the equal sign; c is a one-byte character that can be only one of the following values:
1 30 seconds (0.5 minutes)
2 60 seconds (1.0 minutes) 3 90 seconds (1.5 minutes) 4 120 seconds (2.0 minutes) 5 150 seconds (2.5 minutes) 6 180 seconds (3.0 minutes) 7 210 seconds (3.5 minutes) 8 240 seconds (4.0 minutes) 9 270 seconds (4.5 minutes) J 300 seconds (5.0 minutes) K 330 seconds (5.5 minutes) L 360 seconds (6.0 minutes) M 390 seconds (6.5 minutes) N 420 seconds (7.0 minutes) |
Session option | Description |
---|---|
AUTORESET | A reset precedes the keystroke string specified with a Send Key (3), attempting to reset any states that can be reset (except input-inhibited). AUTORESET is the default setting. |
NORESET | A reset does not precede the keystroke string specified with a Send Key (3). |
Session option | Description |
---|---|
TWAIT | For Wait (4), wait up to 60 seconds before timing out on XCLOCK or XSYSTEM. For Get Key (function 51), wait until a keystroke is queued before returning. TWAIT is the default setting. |
LWAIT | For Wait (4), wait until the XCLOCK or XSYSTEM clears. This setting is not recommended because your Windows HLLAPI does not regain control until the Host is available. For Get Key (51), wait until a keystroke is queued before returning. |
NWAIT | No wait period applies. Wait (4) and Get Key (51) calls each check their respective status and return immediately. |
Session option | Description |
---|---|
EAB | Include extended attributes (EABs) with Data String. Since there is an EAB for every character that displays, you must define Data String to be twice the size of the Host session presentation space or field. |
NOEAB | Do not include any extended attributes (EABs) with Data String (no EABs). This is the default setting. |
Session option | Description |
---|---|
XLATE | Translate extended attributes (EABs) into CGA colors. |
NOXLATE | Do not translate extended attributes (EABs). |
Session option | Description |
---|---|
CONLOG | After connection, your Windows HLLAPI application remains the foreground application. CONLOG is the default setting. |
CONPHYS | After connection, the specified session becomes the foreground application, updating the session and accepting keyboard input. Your Windows HLLAPI application can still access the session (to monitor for a specific event, for example). To return foreground control to your Windows HLLAPI application, call Disconnect Presentation Space (2). |
Session option | Description |
---|---|
OLDOIA | Data returned in 3270 PC format. For 5250 support the OIA is always returned in ASCII therefore OLDOIA is accepted but ignored. |
NEWOIA | Returns the configured size of the presentation space thereby ignoring any override of the presentation space by the host. |
Session option | Description |
---|---|
DISPLAY | Nondisplay fields are copied to the target buffer in the same manner as display fields. |
NODISPLAY | Nondisplay fields are copied as a string of nulls to the target buffer. This allows applications to display the copied buffer in the presentation window without displaying confidential information, such as passwords. |
Session option | Description |
---|---|
WRITE_SUPER | Set by a Windows HLLAPI application that requires write access and allows only supervisory applications to connect to its presentation space. |
WRITE_WRITE | Set by a Windows HLLAPI application that requires write access and allows other applications that have predictable behavior to connect to its presentation space. |
WRITE_READ | Set by a Windows HLLAPI application that requires write access and allows other applications to use read-only functions on its connected presentation space. |
WRITE_NONE | Set by a Windows HLLAPI application that requires exclusive access to the connected presentation space. No other applications, not even supervisory, will have access to its presentation space. |
SUPER_WRITE | Set by a Windows HLLAPI supervisory application allowing applications with write access to share the connected presentation space. The application setting this parameter will not cause errors for other application but provide only supervisory-type functions. |
READ_WRITE | Set by a Windows HLLAPI application that requires read-only access and allows other applications that perform read-only functions to connect to its presentation space. |
Session option | Description |
---|---|
NOKEY | Allows the application to be compatible with existing applications that do not specify the KEY parameter. |
KEY$nnnnnnn | Specify the keyword to restrict sharing of the presentation space. The keyword must be exactly 8-bytes long. |