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

Cobol Programming - Technique


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manishram1

New User


Joined: 23 Mar 2006
Posts: 34

PostPosted: Mon May 31, 2010 10:04 am
Reply with quote

Hi Friends,
We use a Common Program to Get/Put messages in MQ (Say MQX).We have at least 30 Programs which is using this MQX to put or get messages from MQ.Though these programs have different length of Messages ,they are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using considerable amount of CPU.

Eg

A,B,C programs Calls MQX

A has MQ Message Length of 50 bytes
B has MQ Message Lenght of 2000 bytes
C has MQ Message Length of 20 MB

Since MQX is the common module ,MQX has been gradually increased to 20 MB .So A,B though have smaller MQ Message length it is forced to use 20 MB to pass the message.

Thanks in Advance.

-Mani
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 31, 2010 11:27 am
Reply with quote

Hello,

You might consider a new design where the very large messages are placed in one queue and the others are placed in another. . .

Why is there a requirement that these all be interleaved?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon May 31, 2010 2:09 pm
Reply with quote

what is the problem?

the length of the message, is the message length...

and just because you read a 20 byte message into an 20mg byte buffer is no problem.

you are having to resource problems just because of the 20mg buffer size.

you are deluded and have a personal problem which needs to be rectified before you have fix your mqs mess.

you have something else wrong with your system.
a standard - single module to read/write mqs message, regardless of the size is the way to go -
and your crying about needing separate module to handle the 'big ones',
only shows how inexperienced your are.

now explain your problem (other that wanting two modules).

how did you determine the problem?
because this is an idiot statement:
Quote:
They are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using ...


they are not forced to used the maximum length...
Back to top
View user's profile Send private message
manishram1

New User


Joined: 23 Mar 2006
Posts: 34

PostPosted: Sat Jun 05, 2010 7:48 pm
Reply with quote

Thanks for the Great Response dbz.

Dick,
Yes,we are thinking of new design.Thanks
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top