Looking at additional sample programs  SYDn Transactions

Appendix B: Testing a TRS Installation with Sample Programs

SYVn transactions

The SYVn transactions read a VSAM file and return the records. The SYVn RPC passes two parameters: a starting and ending byte offset.

Add the RPC using the sgw_addrpc procedure described under “Defining the test RPC”. These transactions call the following programs:

To execute the SYVn RPC you defined, do one of the following:

The output should be similar to the following:

SYGWLSA1
 ---------------------------------------------------
 sample vsam rpc data rec 0 sample vsam rpc data rec 0
 sample vsam rpc data rec 1 sample vsam rpc data rec 1
 sample vsam rpc data rec 2 sample vsam rpc data rec 2
 .
 .
 .
 (10 rows affected, return status = 0)




Copyright © 2005. Sybase Inc. All rights reserved. SYDn Transactions

View this book as PDF