Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dyanmic MQ message length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Dyanmic MQ message length
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: 6968
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 4:06 pm    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 4:28 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Oct 13, 2011 4:55 pm    Post subject: Reply to: Dyanmic MQ message length
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Oct 13, 2011 5:17 pm    Post subject: Reply to: Dyanmic MQ message length
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us