z/OS MVS Programming: Sysplex Services Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example

z/OS MVS Programming: Sysplex Services Reference
SA38-0658-00

Operation: Send a message to another active member of the XCF group. You can obtain the token of the calling member and the target member from the member information field that IXCQUERY returns. XCF is to store the return code and reason code into the variables RETURN and REASON. The code is as follows:
     IXCMSGOX MEMTOKEN=TOKEN1,MSGBUF=BUFFER1,MSGLEN=LENMSG,     X
        TARGET=TOKEN2,RETCODE=RETURN,RSNCODE=REASON,MF=S

TOKEN1  DS  CL8           MEMBER TOKEN OF MEMBER SENDING X
                    THE MESSAGE
TOKEN2  DS  CL8           MEMBER TOKEN OF MEMBER TO   X
                    RECEIVE THE MESSAGE
RETURN  DS  1F            RETURN CODE
REASON  DS  1F            REASON CODE
BUFFER1 DC  CL256'THIS IS A TEST'  MESSAGE TO BE SENT
LENMSG  DC  F'256'          LENGTH OF THE MESSAGE

You can obtain the member tokens from the QUAMTOKN field in the area returned by IXCJOIN or IXCQUERY,

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014