MQ

 View Only
  • 1.  mqrc on IBM i

    Posted 2 days ago

    On LUW platforms, the mqrc command displays the text value of an MQ return code.
    I haven't found the equivalent on MQ for IBM i.

    Does anyone have an idea?

    Thank you.



    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    #IBMChampion
    ------------------------------


  • 2.  RE: mqrc on IBM i

    Posted 2 days ago

    Hi Luc-Michel,

    mqrc is shipped on IBM i, the *PGM object can be found in the QMQM library in the QSYS filesystem. You can call this program in a CL environment using CALL;

    CALL PGM(QMQM/MQRC) PARM('2035')

    Or from QShell;

    /QSYS.LIB/QMQM.LIB/MQRC.PGM 2035



    ------------------------------
    Jonathan Rumsey
    Senior Software Engineer
    ------------------------------



  • 3.  RE: mqrc on IBM i

    Posted 2 days ago

    Hi Luc-Michel, 

    MQ Binaries does exist on 9.1 onwards in "/QIBM/Proddata/mqm/bin"

    You may find the mqrc there for example. 

    IBMi normally follows AIX binaries (in this case my assumption here is that they do enable it via PASE) . 

    Give that a try and let me know. 



    ------------------------------
    Marius le Roux, theIBMiGuy
    Owner , IBM i Consultant & Technology Strategist, Enterprise Integration Consultant (IBM i Focus)
    MLR Consulting
    South AfricaMarius le Roux, theIBMiGuy
    Owner , IBM i Consultant & Technology Strategist, Enterprise Integration Consultant (IBM i Focus)
    MLR Consulting
    South Africa
    ------------------------------



  • 4.  RE: mqrc on IBM i

    Posted 2 days ago

    Hi Marius,

    MQ on IBM i does provide symlinks in the IFS filesystem from /QIBM/ProdData/mqm/bin to *PGM objects in the QMQM library in the QSYS filesystem - to avoid needing to use /QSYS.LIB/QMQM.LIB/xxxx.PGM style qualification when calling from QShell.

    IBM i (or OS/400 as it was back then) was one of the very first MQ platforms and it has always integrated closely with OS features like commit control and journals. Whilst MQ Advanced Message Security does link out to call into OpenSSL libraries in PASE, all other MQ binaries (*PGM and *SRVPGM) continue to run natively.



    ------------------------------
    Jonathan Rumsey
    Senior Software Engineer
    ------------------------------



  • 5.  RE: mqrc on IBM i

    Posted 2 days ago

    Hi Jonathan, 

    I then stand corrected by your explanation and this makes sense. 

    ( I also confirmed by looking at what you described). 

    Thanks for that clarification.



    ------------------------------
    Marius le Roux theIBMiGuy
    Owner , IBM i Consultant & Technology Strategist
    MLR Consulting
    Port Alfred
    ------------------------------



  • 6.  RE: mqrc on IBM i

    Posted 2 days ago

    Hello Jonathan, hello Marius,
    Thank you for your answers, it reassures me to know that somewhere there are experts who practice MQ on the IBM i. 

    Here in France I have quite a few MQ customers on the IBM i, and I sometimes feel a bit alone, especially when faced with documentation that is VERY ALW-oriented!



    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    #IBMChampion
    ------------------------------



  • 7.  RE: mqrc on IBM i

    Posted 2 days ago

    There are plenty of folks using MQ on IBM i.

    This question should open things up quite a bit.  Those symlinks in /QIBM/ProdData/mqm/bin include most of the commands that the documentation refers to, so many of the examples run with minimal or no modification.  Just put /QIBM/ProdData/mqm/bin in your path.

    Personally, my favorite is piping commands into runmqsc and processing the results with grep and sed.

    There are IBM i equivalent commands for many of these commands as well that work with IBM i specific object types and processes.

    For example, you can use the DMPMQCFG from CL to dump a QM config to a source file with:

    DMPMQMCFG MQMNAME(MYQM)         
              TOFILE(SRCLIB/SRCFILE)
              TOMBR(SRCMBR)         

    or you can dump it to a IFS stream file with:

    dmpmqcfg -m MYQM

    You have the option to choose the one that works for your use case.



    ------------------------------
    Vincent Greene
    IT Consultant
    Technology Expert labs
    IBM
    Vincent.Greene@ibm.com


    The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
    ------------------------------



  • 8.  RE: mqrc on IBM i

    Posted 2 days ago

    another win for IBM i!!! 

    That is good news to hear... though not all companies out there shout it from the rooftops it seems... 

    I also love the fact that the way that its presented is approachable for anyone to understand especially on stable middleware such as IBM MQ. 



    ------------------------------
    Marius le Roux theIBMiGuy
    Owner , IBM i Consultant & Technology Strategist
    MLR Consulting
    Port Alfred
    ------------------------------



  • 9.  RE: mqrc on IBM i

    Posted 2 days ago
    Hi Luc-Michel,

    You can run under qsh: ===> /QIBM/ProdData/mqm/bin/mqrc

    Regards,

     

    Carlos Alberto Bagatin

    Global Technology Services

    Senior Lead, IBM MQ Series 

    bagatin@kyndryl.com