Q PROGRAM FOR MQSERIES - Websphere

This is a discussion on Q PROGRAM FOR MQSERIES - Websphere ; I use Q program to exchange data with MQ series. The command i use to put message on the queue is (see below). The specific id, i use has 24characters length: qc -mqmanager -oFT_INPUT -pmMsgId-0000000000000002488787.1 -f"./filename" where "0000000000000002488787.1" is the ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Q PROGRAM FOR MQSERIES

  1. Q PROGRAM FOR MQSERIES

    I use Q program to exchange data with MQ series.
    The command i use to put message on the queue is (see below). The specific id, i use has 24characters length:
    qc -mqmanager -oFT_INPUT -pmMsgId-0000000000000002488787.1 -f"./filename"

    where "0000000000000002488787.1" is the specific message id. Also i read the data from an ascii file.



    When i'm trying to get an answer for the specific id, i get no data or data with other id's. In any case i cant take the data i expect (the specific id).

    The command i use is below. I must mention that i put the data to another ascii file e.x. :

    qc -mqmanager -IFT_ANS -pmMsgId-0000000000000002488787.1 -F"./filename.out"

    Is there anything wrong with the syntax of the commands or it is not the right way to send data with specific id ?

    If anybody knows about the subject, please reply .

    Thanks a lot.

  2. Re: Q PROGRAM FOR MQSERIES

    I believe you have the parameters slightly wrong, have you tried.....

    qc -mqmanager -IFT_ANS -gmMsgId-0000000000000002488787.1 -F"./filename.out


    Cheers,
    Paul


    wrote in message
    news:2068658969.1226000625445.JavaMail.wassrvr@lts gwas010.sby.ibm.com...
    >I use Q program to exchange data with MQ series.
    > The command i use to put message on the queue is (see below). The specific
    > id, i use has 24characters length:
    > qc -mqmanager -oFT_INPUT -pmMsgId-0000000000000002488787.1 -f"./filename"
    >
    > where "0000000000000002488787.1" is the specific message id. Also i read
    > the data from an ascii file.
    >
    >
    >
    > When i'm trying to get an answer for the specific id, i get no data or
    > data with other id's. In any case i cant take the data i expect (the
    > specific id).
    >
    > The command i use is below. I must mention that i put the data to another
    > ascii file e.x. :
    >
    > qc -mqmanager -IFT_ANS -pmMsgId-0000000000000002488787.1 -F"./filename.out"
    >
    > Is there anything wrong with the syntax of the commands or it is not the
    > right way to send data with specific id ?
    >
    > If anybody knows about the subject, please reply .
    >
    > Thanks a lot.




  3. Re: Q PROGRAM FOR MQSERIES

    I am having a similar problem getting the command line correct for this.

    When I run "q -i TESTQ -gxmMsgId-414D512043524454415830332020202048934127253CDA02" I get all messages on the queue and
    when I run "q -i TESTQ -gmMsgId-414D512043524454415830332020202048934127253CDA02" I don't get any messages.

    $ q -i TESTQ -b -dd
    MQSeries Q Program by Paul Clarke [ V4.4.0 Build:Nov 24 2005 ]
    Connecting ...connected to 'CRDTAX03 ÿÿ'.
    ================================================== ==========================
    Message Descriptor (MQMD)
    Report :0
    Message Type :8
    Format :'MQSTR '
    Priority :0
    Persistence :0 (Not Persistent)
    Message Id :A M Q C R D T A X 0 3 H . A ' % Ç .
    414D512043524454415830332020202048934127253CC708
    ReplyToQ :' '
    ReplyToQMgr :'CRDTAX03 '
    test q -o TESTQ -pcCorrelId-0000000000000002488787 .1
    ================================================== ==========================
    Message Descriptor (MQMD)
    Report :0
    Message Type :8
    Format :'MQSTR '
    Priority :0
    Persistence :0 (Not Persistent)
    Message Id :A M Q C R D T A X 0 3 H . A ' % Ú .
    414D512043524454415830332020202048934127253CDA02
    ReplyToQ :' '
    ReplyToQMgr :'CRDTAX03 '
    test q -o TESTQ -pmMsgId-0000000000000002488787.1
    No more messages.
    $
    $ q -i TESTQ -gxmMsgId-414D512043524454415830332020202048934127253CDA02
    MQSeries Q Program by Paul Clarke [ V4.4.0 Build:Nov 24 2005 ]
    Connecting ...connected to 'CRDTAX03 ÿÿ'.
    test q -o TESTQ -pcCorrelId-0000000000000002488787.1
    test q -o TESTQ -pmMsgId-0000000000000002488787.1
    No more messages.
    $ q -i TESTQ -gmMsgId-414D512043524454415830332020202048934127253CDA02
    MQSeries Q Program by Paul Clarke [ V4.4.0 Build:Nov 24 2005 ]
    Connecting ...connected to 'CRDTAX03 ÿÿ'.
    No more messages.
    $

  4. Re: Q PROGRAM FOR MQSERIES

    This is probably old news for the originator, but the option to set a MessageID is "-gpm00my24Bytes000". I use this pretty routinely to perform parallel tests using the same queue and isolating messages based on this ID.

  5. Re: Q PROGRAM FOR MQSERIES

    Hi,

    Could you explain how can one list the content of pending messages on a MQ queue (is there a command that does this ?

    is there a command/tool that can alter a specific message' priority ? (let's say from 0 to 3 for example)

    Thanks
    Dror

  6. Re: Q PROGRAM FOR MQSERIES

    is there a command/tool that can alter a specific message' priority ? (let's say from 0 to 3 for example)

    Covered in recent thread http://www.ibm.com/developerworks/fo...78772&tstart=0

    HTH, Glenn.

+ Reply to Thread