SPINTO and SPFROM

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:

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.

NoteYou must specify SPINTO for input pipes.