IBM AS/400 Network Router User Manual


 
Performance considerations for Common Programming Interface
Communications
You can use Common Programming Interface Communications (CPI Communications) to write application
programs that you want to communicate with advanced program-to-communications (APPC). The interface
makes use of the System Network Architecture (SNA) LU (logical unit) 6.2 architecture to do the following:
v Establish a conversation
v Send and receive data
v Exchange control information
v End a conversation
v Notify a partner program of errors.
Intersystem communications feature (ICF) and CPI Communications programs have similar performances
for small data transfers.
To optimize CPI Communications application programs, do the following:
v Minimize the use of flush and confirm.
v Receive a compile record and parse it in your buffer.
v Do not use multiple receive calls to receive a single record.
v Use Request-to-Send only when necessary.
To add or change communications entries to get the system set up for CPI Communications, do the
following:
1. Type appropriate command on the AS/400 command line and press F4.
v Add Communications Entry (ADDCMNE)
v Remove Communications Entry (RMVCMNE)
v Change Communications Entry (CHGCMNE)
2. Use the online help information to change, add, or remove parameter values.
3. Press Enter. The communications entries are added, changed or removed.
For more information about configuring CPI Communications, see:
v Application program interface (API) performance considerationson page 17
v CICS/400 Administration and Operations Guide
Chapter 4. Communications applications 19