MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  MQCONNX in RPG

    Posted Tue August 09, 2022 11:29 AM
    Dear all,

    I am computer programmer on an iSeries writing rpg.

    As we have to move from sending SWIFT-Data as a server to as a client I have to update our rpg-programs.

    When I put following commands on QCMD:

    ADDENVVAR ENVVAR(MQCHLTAB) VALUE(CLCHL_M0H2.TAB)
    ADDENVVAR ENVVAR(MQSSLKEYR) VALUE(*SYSTEM)
    CALL PGM(QMQM/AMQRSSLC) PARM('-r')
    CALL QMQM/AMQSPUTC G.CRISP.FROM.WCB_SWIFTFIN_T.FIN (Testqueue) I get connection to the target server which name is M0H2 and I am able to put messages with the testprogram AMWSPUTC

    Unfortunately I am not able to get connection to the target server M0H2 via the MQCONN so I have to use the MQCONNX-program which uses
    'connect options'.

    We are have here MQ-Version 9.1.0.7 and my knowledge for the rpg-syntax is not big enough to be able to set the parameter within the MQCNO-Structure to be able to connect to M0H2.

    Our channeltab definition is store on /qibm/userdata/mqm/CLCHL_M0H2.TAB

    Is there any rpg-programmer out there who could get in touch with my helping me with the syntax?

    I am reachable at christian.witor@rcb.at and it would be great to find some help.

    Anyway, many thanks in advance and regards from Vienna to the community.

    ------------------------------
    Christian Witor
    ------------------------------


  • 2.  RE: MQCONNX in RPG

    Posted Fri August 12, 2022 05:32 AM

    Hi Christian,

    Happy to give you a hand with RPG programming, but first, can I ask why it is you need to use MQCONNX?

    In your question you show setting up the location of the CCDT (Channel Table) and the location of the SSL Key Repository. Using these environment variables means that an MQCONN call can connect to a queue manager using all the channel attributes from the CCDT and taking the SSL certificates from the nominated location.

    So, I must assume that there is some other thing you need to code in the MQCONNX. To help you to do that, I first need to know what that is.

    So, please can you elaborate on why it is that you have to use MQCONNX? What is it that you need to specify?

    Also, it might be useful for you to show us a little snippet of your current RPG program using MQCONN, and then we can make the example MQCONNX fit in with your variable names etc.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------