AM3270 Management Programming Manual
 MANAGEMENT PROGRAMMING FOR AM3270
 Communicating With the AM3270 Subsystem
 Regardless of the language you are using, the tasks an applica-
 tion must perform when communicating with either SCP or the EMS
 distributor process (DP) are as follows:
 1. Establish communication with SCP or the EMS DP.
 2. Call SPI procedures to build a message.
 3. Send the message to SCP or the EMS distributor process.
 4. Receive the response.
 5. Check for error codes and handle any error.
 6. Decode the response.
 7. Take appropriate action and return to step 2, if necessary.
 8. Terminate communication with SCP or the EMS DP.
 All data-communications subsystems must use the same message
 protocol for communicating with SCP. For details on this
 protocol, refer to the 
Communications Management Programming
Manual
 and the 
Distributed Systems Management (DSM) Programming
Manual
. For details on communicating with the EMS distributor
 process for the AM3270 subsystem, refer to Section 7, "Event
 Management." For general information about communicating with
 the EMS distributor process, refer to the 
Event Management
Service (EMS) Manual
.
 2-12










