This topic summarizes processing considerations you need to be aware of when developing programs on an OS/2 server, client, or workstation.
IMPORTS CPIC.[entry point to be used]
(Use this statement for each entry point needed.)
Setting APPCLLU is necessary only if the program does not use an LU from the default LU pool.
Two or more instances of the same program can be run as different processes.
One process can engage in multiple conversations, subject to the restrictions described under "Simultaneous conversations" in this topic.
Unlinking (the DosFreeModule call) is not supported.
When executing a call, CPI-C uses the calling program's stack. The combination of OS/2 and CPI-C requires 2560 bytes of stack space, and the program requires additional stack space for its variables.
CPI-C does not provide a parameter for specifying the name of the invoking (Initialize_Conversation) TP instance. Instead, it is provided through the APPCTPN environment variable. For the invoking program, APPCTPN can be set by the operator or by the program itself. If APPCTPN is not set, the default value is CPIC_DEFAULT_TPNAME.
For the invoked program, the value of APPCTPN must match the value set by the invoking program. Accept_Conversation cannot be completed unless the allocation request from the invoking program specifies the TP name contained in APPCTPN.
If the invoked program is operator-started, the value of APPCTPN can be set by the operator or by the program. If the program is automatically started, the value of APPCTPN is set when configuring the invokable program. It can also be set by the program itself. If this variable is not set when the invoked program issues Accept_Conversation, the default value is CPIC_DEFAULT_TP_NAME.
The APPCTPN variable can be an ASCII string from 1 through 64 characters long, consisting of uppercase and lowercase letters, numerals from 0 through 9, and special characters, except the space. The APPCTPN variable cannot be set to an SNA service TP name, which contains nonprintable hexadecimal values.
If the invoking program issues multiple Initialize_Conversation calls, it can set APPCTPN to a different value before each call.