Now that you reviewed RSP commands you are ready to review a sample RSP.
Sybase provides sample RSPs for you to use as shells for the RSPs you write. This guide contains four of the sample programs. These samples include explanatory material detailing what the RSP does. Review the sample or samples that fit your RSP needs before continuing with the next section, “Making design decisions.”
MODELRSP shows you how to use a DB2 format output pipe and a SQLDA definition. See Appendix B, “MODELRSP DB2 Output Pipe Sample RSP” for a reproduction of the sample.
RSP3C shows you how to use STD format input and output pipes to transmit (send or receive) data. See Appendix C, “RSP3C STD Input and Output Pipe Sample RSP” for a reproduction of the sample.
RSP4C shows an example of how to transmit keyword variables. See Appendix D, “RSP4C Keyword Variable Sample RSP” for a reproduction of the sample.
RSP8C shows an example of how to transmit variable text. See Appendix E, “RSP8C Variable Text Sample RSP” for a reproduction of the sample.
See Table 3-1 for a complete list of the
samples provided on the Open ServerConnect API tape.