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: Request the most recent information about a specific member MEMB1 of the group GROUPA. Register 2 points to the area where XCF is to place the member information. XCF is to store the return code and reason code into the RETURN and REASON fields. The code is as follows:
         LA    R2,MYAREA                OBTAIN ADDRESS OF OUTPUT AREA  X
                                        FOR IXCQUERY

         IXCQUERY REQINFO=GROUP,GRPNAME=GROUPA,ANSAREA=(R2),           X
               ANSLEN=AREALEN,REQTYPE=DEFER,RETCODE=RETURN,            X
               RSNCODE=REASON,MEMNAME=MEMB1,MF=S

GROUPA   DC    CL8'GROUPA'              NAME OF GROUP FOR WHICH DATA   X
                                        IS TO BE RETURNED
MEMB1    DC    CL16'MEMB1'              NAME OF MEMBER FOR WHICH DATA  X
                                        IS TO BE RETURNED
MYAREA   DS    CL156                    OUTPUT AREA TO CONTAIN DATA    X
                                        RETURNED BY IXCQUERY
RETURN   DS    1F                       RETURN CODE
REASON   DS    1F                       REASON CODE
AREALEN  DC    F'156'                   LENGTH OF OUTPUT AREA

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014