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:
SYV1 calls the PL/I program, SYCASAV1.
SYV2 calls a COBOL program, SYCASAV2.
SYV3 calls an assembler program, SYCASAV3, which is supplied on the mainframe.
To execute the SYVn RPC you defined, do one of the following:
Enter the following command at the dynamic SQL utility prompt: (Replace SYVn with SYV1, SYV2, or SYV3.)
exec SYVn 0,9999
If the directory containing the samples is on the search path, enter this command at the server console prompt:
SYVn 0,9999
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. |
![]() |