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

Why Recommended Commarea size is 24K


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Fri Jun 03, 2011 3:53 pm
Reply with quote

Hi All,

The maximum COMMAREA size i believe is 64K. But i read that IBM recommends that the commarea size be limited to 24K to 32K. Any reason why this recommendation?

Thanks
Back to top
View user's profile Send private message
valyk

Active User


Joined: 16 Apr 2008
Posts: 104
Location: South Carolina

PostPosted: Fri Jun 03, 2011 4:03 pm
Reply with quote

The maximum Commarea is 32k. The reason is that orignally CICS was built for 16 bit architecture, and there were 15 bits for addressing storage. 2^15 is 32k.

For applications that require a commarea larger than 32k, use channels and containers.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 03, 2011 4:24 pm
Reply with quote

Actually, the maximum-length is 32763 as a signed binary-halfword.

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 03, 2011 5:14 pm
Reply with quote

Quote:
The maximum COMMAREA size i believe is 64K.
Your belief is wrong. As has been pointed out, the limit is half that (minus 1). And why did you not check this in the manual (link at the top of the page)? It is quickly and easily found in the CICS Application Programming Reference manual -- not to mention a search of this very forum would find a number of topics discussing the DFHCOMMAREA limit.

I believe the 24K recommendation is to allow for system headers and other overhead.
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 107
Location: India

PostPosted: Fri Jun 03, 2011 5:36 pm
Reply with quote

Thank you so much. That helps!
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 03, 2011 6:04 pm
Reply with quote

As Robert had said, this subject has been discussed quite extensively.

For more hits, instead of DFHCOMMAREA, search this forum for EIBCALEN.

Bill
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 Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Dataset size increase on adding 1 byt... DFSORT/ICETOOL 8
No new posts CICS COMMAREA CICS 3
Search our Forums:

Back to Top