Write the CSA

You can use the database access code from existing programs in your CSA. Whenever possible, use existing data definitions or code from other programs. We recommend that you use one of the sample CSA programs and SPAREA definitions provided with the Open ClientConnect API as a base for your own CSA.

CSA programming tasks include:

  1. Define input data pipes if the CSA retrieves results.

  2. Use the CSA commands, such as GETMSG and RESCHECK, whenever appropriate. Appendix A, “CSA Commands” provides detailed information on commands.

  3. Read from and writing to the SPAREA that the CSA shares with Open ClientConnect.

  4. Specify error handling.