11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

amSendMsg<br />

Syntax<br />

1-94 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

amSendMsg(hSession, senderName, policyName, data, sndMsgName, reasonCode)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The amSendMsg function sends a datagram (send and forget) message.<br />

For detailed information about this function, see <strong>UniBasic</strong> Extensions.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

hSession The session handle returned by the amInitialize function. [IN]<br />

senderName The name of a sender service. If you specify ““(null), UniData uses the<br />

system default receiver name. [IN]<br />

policyName The name of a policy. If you specify ““(null), UniData uses the system<br />

default policy name. [IN]<br />

data The message data to be sent. [IN]<br />

sndMsgName The name of a message object for the message being sent. If you specify<br />

““(null), UniData uses the system default policy name. [IN]<br />

reasonCode Holds an AMI reason code when the function returns a status indicating<br />

an AMI warning or an AMI error occurred. You can use the AMI reason<br />

code to obtain more information about the cause of the warning or error.<br />

See the MQSeries Application Messaging Interface manual for a list of<br />

AMI reason codes and their descriptions. [OUT]<br />

amSendMsg Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!