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------------------------------
Original Message:
Sent: Wed May 11, 2022 09:37 PM
From: Debabrata Ghosh
Subject: setting up MQCFSL correctly
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
Original Message:
Sent: Wed May 11, 2022 06:52 PM
From: Debabrata Ghosh
Subject: setting up MQCFSL correctly
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
Original Message:
Sent: Wed May 11, 2022 06:15 PM
From: Morag Hughson
Subject: setting up MQCFSL correctly
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
Original Message:
Sent: Wed May 11, 2022 02:08 PM
From: Debabrata Ghosh
Subject: setting up MQCFSL correctly
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
------------------------------