MQGET call on IBM i

For the get-message options:

  • Only one of the following options is allowed:

    • GMNSYP
    • GMSYP
    • GMPSYP

  • Only one of the following options is allowed:

    • GMBRWF
    • GMBRWC
    • GMBRWN
    • GMMUC

  • GMSYP is not allowed with any of the following options:

    • GMBRWF
    • GMBRWC
    • GMBRWN
    • GMLK
    • GMUNLK

  • GMPSYP is not allowed with any of the following options:

    • GMBRWF
    • GMBRWC
    • GMBRWN
    • GMCMPM
    • GMUNLK

  • If GMLK is specified, one of the following options must also be specified:

    • GMBRWF
    • GMBRWC
    • GMBRWN

  • If GMUNLK is specified, only the following options are allowed:

    • GMNSYP
    • GMNWT

Parent topic: Rules for validating MQI options for IBM i (ILE RPG)