Returning return parameters

The processing of return parameters requires two basic steps:

  1. Indicate where the application has stored the return parameter data and identify its format by calling srv_bind.

  2. Transfer the return parameter data from the application program variables specified in step 2 to the client by calling srv_xferdata.

An application must invoke the two routines with their cmd arguments set to CS_SET as the application returns results to the client.

If return parameters have been “constructed” out of a text stream, they need to be described, in addition to being bound and transferred. See “Returning parameters in a language data stream”, for further explanation.