IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dyanmic MQ message length


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arun bv

New User


Joined: 29 Dec 2010
Posts: 41
Location: Mumbai

PostPosted: Thu Oct 13, 2011 3:36 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 4:06 pm
Reply with quote

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
View user's profile Send private message
Arun bv

New User


Joined: 29 Dec 2010
Posts: 41
Location: Mumbai

PostPosted: Thu Oct 13, 2011 4:09 pm
Reply with quote

Thanks ,,,,

would you suggest me some manuals
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 4:28 pm
Reply with quote

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
View user's profile Send private message
Arun bv

New User


Joined: 29 Dec 2010
Posts: 41
Location: Mumbai

PostPosted: Thu Oct 13, 2011 4:46 pm
Reply with quote

Quote:
had any incentive

you are right ....


anyway ...let me go thru this ....


thanks a lot....
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 13, 2011 4:55 pm
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
Arun bv

New User


Joined: 29 Dec 2010
Posts: 41
Location: Mumbai

PostPosted: Thu Oct 13, 2011 4:58 pm
Reply with quote

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.... icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 13, 2011 5:17 pm
Reply with quote

just for the body rental,... not forthe brain up and running
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
Search our Forums:

Back to Top