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

What is the maximum size of DFHCOMMAREA


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lucky.rohith
Currently Banned

New User


Joined: 06 Aug 2006
Posts: 10

PostPosted: Thu Sep 21, 2006 2:06 pm
Reply with quote

Hi
What is the maximum size of DFHCOMMAREA?
is tat 32k or 64k?
Back to top
View user's profile Send private message
venkagov

New User


Joined: 10 Aug 2006
Posts: 6
Location: Chennai

PostPosted: Thu Sep 21, 2006 3:55 pm
Reply with quote

Hi,

The maximum size of DFHCOMMAREA is 32K, however it is recommended (by IBM) that it not exceed 24K.

Regards,

Venkagov
Back to top
View user's profile Send private message
anandss6

New User


Joined: 12 Dec 2005
Posts: 7
Location: trivandrum

PostPosted: Thu Sep 28, 2006 12:44 pm
Reply with quote

Hi

The maximum size of DFHCOMMAREA is 64k

Regards
Anand
Back to top
View user's profile Send private message
naresh_1246

New User


Joined: 19 Aug 2006
Posts: 1

PostPosted: Thu Sep 28, 2006 5:45 pm
Reply with quote

max size of dfhcommarea is 32k
Back to top
View user's profile Send private message
meetreks

New User


Joined: 28 Sep 2006
Posts: 26
Location: Edinburgh

PostPosted: Fri Sep 29, 2006 9:57 pm
Reply with quote

Actually, with the news CICSTS 2.1 or above, there is no specific limit to the size of DFHCOMMAREA. But for paging constraints, it is always better to hold it down to <32K.
Back to top
View user's profile Send private message
dineshpost

New User


Joined: 06 Nov 2008
Posts: 2
Location: India - Chennai

PostPosted: Thu Oct 22, 2009 11:05 pm
Reply with quote

The Max size of DFHCOMMAREA is 65k
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 23, 2009 12:26 am
Reply with quote

Why argue when you can check the manual (link at the top of the page)? If this had been done, someone could have found the Application Programming Reference manual for CICS, where section 1.205 states
Quote:
The valid range for the COMMAREA length is 0 through 32 763 bytes. If the length provided is outside this range, the LENGERR condition occurs.

Note that EIBCALEN is a PIC S9(04) COMP field and therefore cannot exceed 32767 (or 32K minus 1) so that sets the absolute limit on commarea length -- unless IBM changes the EIB structure, and that is not very likely to happen in the foreseeable future. IBM took 4 bytes off this maximum, so the real limit is 32763. However, elsewhere IBM recommends NOT using more than 24K of commarea.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Fri Oct 23, 2009 1:35 am
Reply with quote

Darn. I liked all the other answers, which can be summed up by the formula:

Max commarea length = 1024 * (random number between something and something else) + (# of people who don't read the manuals) + (made up release numbers) / (# of nonexistent enhancements) modulo whatever plus or minus a bunch.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Fri Oct 23, 2009 3:03 am
Reply with quote

Robert has it right. for all you that posted max size of commarea greater than 32767, please write some code that moves data to the entire area of your larger DFHCOMMAREA, and be sure to move the program to
a PRODUCTION CICS region.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 23, 2009 3:04 am
Reply with quote

Hmmm, Mbabu, maybe next time we'll see how many different answers are posted in 24 hours?
Back to top
View user's profile Send private message
bantu2405

New User


Joined: 03 Nov 2009
Posts: 2
Location: Pune

PostPosted: Tue Nov 03, 2009 1:33 pm
Reply with quote

Hi,
The maximum length is 32K.
Pay attention to the followup below.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Nov 03, 2009 2:12 pm
Reply with quote

Hi Bantu,
Welcome to the forum... icon_smile.gif

The topic/post has already been well answered by Robert.
Any particular reason why you have posted the same answer again ? icon_confused.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Nov 03, 2009 3:41 pm
Reply with quote

bantu2405, any particular reason you posted a wrong answer AFTER the correct answer was provided? 32K is not the maximum size for DFHCOMMAREA, period. The IBM manuals are pretty reliable -- without an extremely good reason to the contrary, you should believe their information.
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 SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
Search our Forums:

Back to Top