View previous topic :: View next topic
|
Author |
Message |
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
how to find length of message from the MQ(message queue) dynamically for different messages came into the queue in CICS program,?
currently,as and when sign on and registered the queue ,we proceed to read the queue with fixed buffer length. because of this more space allocated(hardcoded value) is unused.
pls help me with getting the length of message in the queue dynamically. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
nothing dynamic about it,
there is a field that is populated with message length during the GET API
suggest you go thru the manuals, looking for it.
no telling what you will learn. |
|
Back to top |
|
|
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
Thanks ,,,,
would you suggest me some manuals |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
i would say look at the GET syntax.
this is a copy of the GET in an old system:
Code: |
CALL "MQGET" USING MQS-QMGR-HANDLE
MQS-OBJECT-HANDLE
MQMD
MQGMO
MQS-BUFFER-LAENGE
MQS-BUFFER
MQS-MSG-LAENGE
MQS-COMPCODE
MQS-REASON
END-CALL |
by the way, laenge means length.
and how you expect to be a programmer without obtaining the appropriate manuals -
sorry, stupid question,
if you were anywhere on the ball
or had any incentive
you would have found them yourself, right.
-
so
depending upon you version of MQS,
here is a link to the WEBSPHERE MQS LIBRARY |
|
Back to top |
|
|
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
you are right ....
anyway ...let me go thru this ....
thanks a lot.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
you are right .... |
but then You should realize that at least You get paid for Your body rental for 8 hours a day
here we reply on our time and free of charge
the only incentive we get here are properly posted questions and attitude
and we get pissed off when both things are missing |
|
Back to top |
|
|
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
Quote: |
You should realize that at least You get paid for Your body rental for 8 hours a day |
i would have realized if i am paid well.....LOL.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
just for the body rental,... not forthe brain up and running |
|
Back to top |
|
|
|