Browse Prior Art Database

Common Programming Interface Communications Simulator

IP.com Disclosure Number: IPCOM000120736D
Original Publication Date: 1991-Jun-01
Included in the Prior Art Database: 2005-Apr-02
Document File: 2 page(s) / 87K

Publishing Venue

IBM

Related People

Davies, IL: AUTHOR

Abstract

The Common Programming Interface Communications (CPI-C) provides a programming interface that allows program-to-program (transactional) communications using IBM's System Network Architecture (SNA) logical unit 6.2 (LU6.2). This article describes a method whereby the writer of such transactional programs is provided with the ability to simulate CPI-C processing. This simulation allows the programmer to test the transactional program without having to have a SNA network available, and/or prior to the availability of the partner transactional program. The ability is provided to receive predetermined data, to create files representing the data that would be sent and to simulate the return codes and other flags which would be set by the CPI-C routines.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Common Programming Interface Communications Simulator

      The Common Programming Interface Communications (CPI-C)
provides a programming interface that allows program-to-program
(transactional) communications using IBM's System Network
Architecture (SNA) logical unit 6.2 (LU6.2).  This article describes
a method whereby the writer of such transactional programs is
provided with the ability to simulate CPI-C processing.  This
simulation allows the programmer to test the transactional program
without having to have a SNA network available, and/or prior to the
availability of the partner transactional program.  The ability is
provided to receive predetermined data, to create files representing
the data that would be sent and to simulate the return codes and
other flags which would be set by the CPI-C routines.  This makes it
possible to test error paths associated with transmission errors and
incorrect data.

      The simulation is done by loading the IBM-supplied CPI-C
routines under aliases and loading the simulation routines under the
names of the CPI-C CSL routines.  Thus, the transaction application
does not have to be modified in any way to make use of this
simulation.  There is also the capability to simulate one
conversation while another conversation can be communicating with
another application using the CPI-C routines.

      There are two control files.  The first one, called the accept
conversation control file, contains the conversation ids that are to
be accepted by the ACCEPT CONVERSATION command.  The second one,
called the conversation control file, contains conversation ids,
symbolic destination names (if applicable), a flag to indicate
whether the real CPI-C routines are to be used, the filename of the
input data and codes files along with a field to keep track of which
record was last read, and the filename of the output data file and
associated codes file (if necessary) along with a field to keep track
of which record was last written.

      Conversations can be started by the INITIALIZE CONVERSATION
command specifyin...