Visual Basic Return Codes
All EHLLAPI functions return the EHLLAPI return code, as described in the EHLLAPI Programming Guide. Before calling any EHLLAPI functions, call EHLLAPIQuerySessions. This determines which, if any, 3270 sessions are available. The returned string contains the short names of the available sessions.
Return Code
|
Description
|
0
|
Function completed successfully; PS is unlocked and ready for input.
|
1
|
Invalid PS position (null or blank with no connection).
|
2
|
File not sent. Command line is not valid or one or more unrecognized parameters; all recognized values accepted.
|
3
|
File transfer complete.
|
4
|
Successful connection, but PS is busy or timed out on TWAIT or LWAIT; or OIA copied, PS is busy.
|
5
|
Successful connection, but PS is locked or not all keystrokes could be sent or OIA copied, PS is locked.
|
6
|
Copy was completed, but data was truncated.
|
7
|
Invalid PS position.
|
8
|
No prior Function 23 or 50 call for this PS position.
|
9
|
System error, function failed. Emulator not loaded.
|
21
|
OIA was updated.
|
22
|
PS was updated.
|
23
|
OIA and/or PS was updated.
|
24
|
Search string was not found.
|
26
|
PS or OIA has been updated.
|
27
|
File transfer ended by user request.
|
28
|
Field length of 0 bytes.
|