The following sample shows how to use the SPINTO field.
SET SPINTO TO ADDRESS OF WS-INPUT-REC CALL 'GETPIPE' USING SPAREA
Use the SPINTO field to specify the address of the storage location where the RSP places the input data it receives from the client application. The SPINTO field is used with the GETPIPE command, which reads client application data from an input pipe.
In RSP3C, the input and output storage area are defined as follows:
A GETMAIN is issued to allocate this storage area
A pointer was set to the area
The WS-INPUT-REC variable is associated with that pointer, as shown:
EXEC CICS GETMAIN SET(PARTSPOINTER) FLENGTH(55) END-EXEC.
SET ADDRESS OF WS-INPUT-REC TO PARTSPOINTER.
RSP3C uses a corresponding field, SPFROM, to specify the address of storage where the RSP places the data it is returning with the PUTPIPE command. The PUTPIPE command returns data to the client application through an output pipe.
SET SPFROM TO ADDRESS OF WS-INPUT-REC
MOVE 55 TO SPRECLEN
CALL 'PUTPIPE' USING SPAREA
Again, the storage is defined within the RSP.
You must specify SPINTO for input
pipes.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |