Previous Topic
Table Of Contents
Parent Topic
Next Topic
| |
High-Level Language for the SWSAPSND (SDCPAS or SWCPAS)
Function
Related Topics
Web Server API Function Index
SDCPAS or SWCPAS
Use this call to do a send to APPC for IMS.

Call Arguments
Type |
Argument |
Use |
Description |
ptr |
hstmt |
input |
Statement handle. Note: Because only one host rpc can execute at a time
for each host session, this value is ignored and must be zero. |
S9(5) |
sql-appc-type |
input |
Connection type. This should always be set to IMS. |
X(8) |
conversation-id |
output |
Identifies a conversation to the system. |
S9(9) |
send-length |
input |
Specifies the length of the data to be sent. |
X(92) |
buffer |
input |
Identifies the buffer which contains the data to be sent. |
X(17) |
partner-lu-name |
input |
Specifies name of the LU at which the partner program is located. |
S9(9) |
atb-send-type |
input |
Optional. Send_type specifies what, if any, information
is to be sent to the partner program in addition to the data supplied. end_type also lets
you combine operations (for example, Send_and_confirm) and save extra calls to APPC. |
S9(9) |
message-len |
i/o |
Optional. Specifies the length of the message to be
written or read from the message queue. |

Possible values are:
- SWS_SUCCESS
- The operation succeeded. The specified operation was performed.
- SWS_ERROR
- A parameter validation or run-time error was encountered. Error information is available
using the SWSERROR function.
- SWS_ENVIRONMENT_ERROR
- The request can not be processed because of a run-time environmental error. For example,
you invoked the API service outside of a Web transaction procedure or from outside the
server's address space. Use the server's wrap-around trace to obtain diagnostic
information.
-

Example
CALL 'SDCPAS' USING STATEMENT-HANDLE
SQL-APPC-TYPE
CONVERSATION-ID
SEND-LENGTH
BUFFER
PARTNER-LU-NAME
Top
|