Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
pseudo conversational programming

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
Author Message
namitjai

New User


Joined: 12 Feb 2008
Posts: 1
Location: Bangalore

PostPosted: Thu Apr 24, 2008 3:37 pm    Post subject: Reply to: Purpose of using COMMAREA in CICS program
Reply with quote

Could you please tell me during pseudo conversational programming when user enter some fileds in map and hit ENter then field entered by user will come directly into dfhcommarea field?
Also when we call one program by passing some values then what will be the syntax also please tell me what each field will contain exactly...
Back to top
View user's profile Send private message
References
PostPosted: Thu Apr 24, 2008 3:37 pm    Post subject: Re: Reply to: Purpose of using COMMAREA in CICS program Reply with quote

Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 61

PostPosted: Thu Apr 24, 2008 7:05 pm    Post subject:
Reply with quote

namitaj,


first of all, fields on screen map do not directly fill in the dfhcommarea field. there is a cobol statement called MOVE that you must code in your program to accomplish,,,
UNLESS you define your BMS map in the dfhcommarea, but then you better make sure there is plenty of DFHCOMMAREA storage defined or your program will abend.

Defining maps in dfhcommarea is not a suggested coding practice.

your second question can not be answered without additional information.


Have you tried reading the CICS Application programmers guide before posting these questions?
Back to top
View user's profile Send private message
Bill O'Boyle

Active User


Joined: 14 Jan 2008
Posts: 138
Location: Orlando, FL, USA

PostPosted: Thu Apr 24, 2008 7:23 pm    Post subject: Re: Purpose of using COMMAREA in CICS program
Reply with quote

elango wrote:
hai
The maximum size of DFHCOMMAREA is 32K

A slight correction. The maximum value in EIBCALEN (the length of the commarea) is 32763 as opposed to 32768 (32K).

Note that the largest value for EIBCALEN is 32K-1. This is due to the fact that EIBCALEN is a signed binary-halfword and 32768 (X'8000') thru 65535 (X'FFFF') would render EIBCALEN as a negative value.

If EIBCALEN were (but it's not) an unsigned binary-halfword, then its maximum value would be 65535 (X'FFFF').

Regards,

Bill
Back to top
View user's profile Send private message
mymains
Currently Banned

New User


Joined: 24 Apr 2008
Posts: 7
Location: Banglore

PostPosted: Fri Apr 25, 2008 3:15 pm    Post subject:
Reply with quote

Maximum size of Commarea is actually 64k accoding to ibm specifications but it is not possible to pass more than 24 k.
i think it can be corrected .......
icon_smile.gif
Back to top
View user's profile Send private message
Splitted: Fri Apr 25, 2008 7:35 pm by William Thompson From Topic Purpose of using COMMAREA in CICS program (CICS)
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1