Communicates to MainframeConnect the success or failure of the processing it performed.
Syntax varies with the programming language.
This example sets the status to indicate an error condition:
MOVE 'E' TO SPSTATUS. CALL 'STATUS' USING SPAREA.
The STATUS command uses the SPSTATUS field (see “SPSTATUS”) to specify processing status. Use one of these codes:
'OK' indicates success.
'E' indicates an error.
'W' indicates a warning.
STATUS releases results and messages to the client application.
An RSP must issue at least one STATUS command. If an RSP terminates without issuing a STATUS command, MainframeConnect automatically issues a STATUS message indicating an error occurred.
For each result set returned to the client application, the RSP must issue a STATUS command after the output pipe closes. Issuing a STATUS command while a data pipe is open automatically closes the pipe.
An RSP can issue the STATUS command as many times as necessary.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |