MODELRSP is a RSP sample COBOL II program that provides examples of:
Using a DB2-format output pipe
Defining a SQLDA with all possible datatypes represented
Using the SPAREA to communicate with MainframeConnect
Using the RSP commands to manage a data pipe and communicate status
Sending data to the client application
Handling errors
In the MODELRSP example, keyword variables, variable text, or data are not sent as input to the RSP. The sample program is shown in its entirety. The program also contains many in-line comments (denoted with standard asterisks) to explain the flow of processing and clarify points.
For simplicity, the example does not include database access code. Instead, it sends 11 columns of employee data to illustrate 11 types of data you can transmit to the client application.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |