The integer constants described in ESL APPC Events, are predefined for use in ESL APPC Support. They can be used to set values for subroutine calls by copying them into integer variables you have defined to be used as subroutine arguments. For those arguments that are integer variables and that have a default value (marked in Section 5 with _(Default)_), you can indicate that the default value should be used by copying the integer constant APPC_Default into the argument. Any other variables, constants, or literals can also be used to set subroutine argument values, as long as the resulting value is valid for the argument.
Note that subroutine arguments that are string variables cannot be defaulted; you must always supply a value.
The set of predefined integer constants you can use to set subroutine argument values is listed here:
Constant |
Value |
Where Used |
APPC_Abend |
11 |
APPCEnd |
APPC_Automatic |
3 |
APPCStart APPCAcceptStart |
APPC_BadGet |
12 |
APPCSendError |
APPC_BadSend |
13 |
APPCSendError |
APPC_Confirm |
2 |
APPCStart APPCSendString APPCSendDLLData APPCEnd |
APPC_Controlled |
4 |
APPCStart APPCAcceptStart |
APPC_Convert |
6 |
APPCGetString APPCSendString |
APPC_CreateProfile |
14 |
APPCSetInitProfile APPCSetAcceptProfile |
APPC_Default |
0 |
All subroutines |
APPC_DeleteProfile |
16 |
APPCSetInitProfile APPCSetAcceptProfile |
APPC_Flush |
7 |
APPCSendString APPCSendDLLData APPCEnd |
APPC_MoreData |
9 |
APPCSendString APPCSendDLLData |
Using APPC Subroutines
Constant |
Value |
Where Used |
APPC_NoConvert |
5 |
APPCGetString APPCSendString |
APPC_None |
1 |
APPCStart APPCSendString APPCSendDLLData |
APPC_ReadyToReceive |
10 |
APPCSendString APPCSendDLLData |
APPC_ReplaceProfile |
15 |
APPCSetInitProfile APPCSetAcceptProfile |
APPC_Reserved |
-1 |
APPCSendError |
APPC_SyncLevel |
8 |
APPCSendString APPCSendDLLData APPCEnd |
For the complete list of ESL APPC predefined integer constants, please review the ESLAPPC.INC include file.