Appendix E: RSP8C Variable Text Sample RSP  RSP8C variable text sample code

Appendix E: RSP8C Variable Text Sample RSP

Client application processing

The following Figure E-1 contains an example that uses ISQL to invoke the RSP8C sample RSP. RSP8C reads up to 10,000 bytes of variable text as input and returns the same data for display in 50-byte blocks.

Figure E-1: Sample RSP8C input

In the preceding figure, the variable input text string, 500 characters in length, is separated into ten 50-byte blocks that have a carriage-control character at the end of each block.

The carriage-control character counts as the 51st character of each block. The following figure shows that the carriage-control characters are reflected in the output data records as spaces, making the total number of characters returned 510.

Figure E-2: Sample RSP8C output





Copyright © 2005. Sybase Inc. All rights reserved. RSP8C variable text sample code

View this book as PDF