MQ

 View Only
  • 1.  setting up MQCFSL correctly

    Posted Wed May 11, 2022 02:09 PM
    I am a first time user of MQCFSL structure and have few questions. 

    I am setting MQCFSL_PARAMETER = MQCACH_LAST_MSG_DATE  and one extra parameter MQCACH_LAST_MSG_TIME.
    i am getting data except what I have passed in MQCFSL structure but not getting the message date.

    have placed MQCACH_LAST_MSG_TIME   past (MQCFSL_STRUC_LENGTH_FIXED + MQ_CHANNEL_DATE_LENGTH)  but I am not seeing any message date under PCFTYPE=MQCFST

    What's your thought?

    Regards
    deb

    ------------------------------
    Debabrata Ghosh
    ------------------------------


  • 2.  RE: setting up MQCFSL correctly

    IBM Champion
    Posted Wed May 11, 2022 06:15 PM

    Hi Deb,

    Can you tell us what command you are issuing and why you need to create an MQCFSL (string list) with these attributes?

    Your last sentence suggests you MIGHT be trying to request some parameters to be returned on a command? If this is the case, you should be listing the parameter IDs in an MQCFIL (and integer list) as the parameter IDs are integers.

    However, rather than me guessing, it would be easier if you could explain what it is you are actually trying to do.

    Cheers,
    Morag



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



  • 3.  RE: setting up MQCFSL correctly

    Posted Wed May 11, 2022 06:52 PM
    Hi Morgan,
        I am issuing MQCMD_INQUIRE_CHANNEL_STATUS and trying to obtain MQCACH_LAST_MSG_DATE and MQCACH_LAST_MSG_TIME.
        manual says that date/time comes under MQCFST structure. so I  used  MQCFSL structure. but I am not getting any date/time returned. 
        
       so should I be using that under MQFIL  rather than MQCFSL ?   

    regards
    deb
        
       
     


    ------------------------------
    Debabrata Ghosh
    ------------------------------



  • 4.  RE: setting up MQCFSL correctly

    Posted Wed May 11, 2022 09:37 PM
    Hi Morgan,   looks like after I added under integer list bucket, it came up. I see length of 12 bytes and date field is filled with spaces for a channel defined in sandbox.  does this make sense. so I am not sure this channel was ever started.  but does the data make sense ?


    Regards
    Deb

    ------------------------------
    Debabrata Ghosh
    ------------------------------



  • 5.  RE: setting up MQCFSL correctly

    IBM Champion
    Posted Wed May 11, 2022 10:31 PM

    If you issue the equivalent MQSC command to see the same channel, e.g:-

    DISPLAY CHSTATUS(*) LSTMSGDA LSTMSGTI

    do you see any data in those fields. If not, then you would expect the same on the PCF command response.

    Last Message Date and Time will only be useful if any messages have been moved. So if you don't think this channel has ever started, then it is likely it hasn't moved any messages either.

    Cheers,
    Morag



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



  • 6.  RE: setting up MQCFSL correctly

    IBM Champion
    Posted Wed May 11, 2022 10:16 PM

    When you issue an MQCMD_INQUIRE_CHANNEL_STATUS and you want to request specific attributes to come back on the response, you list the parameter ids for those attributes in a special command parameter "ChannelInstanceAttrs" (MQIACH_CHANNEL_INSTANCE_ATTRS). This parameter (as detailed in the page describing the command) is an MQCFIL - a list of integers.

    Regardless of the type of the attribute you want returned, the way to ask for it to be returned is to add it's integer parameter ID to this list in this special parameter on the command.

    Hope that makes sense?

    Cheers,
    Morag



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



  • 7.  RE: setting up MQCFSL correctly

    Posted Thu May 12, 2022 10:46 AM
    Hi Morgan.

    understood... thank you

    Regards
    deb

    ------------------------------
    Debabrata Ghosh
    ------------------------------