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
 
how to calculate the commarea?

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

New User


Joined: 14 Dec 2005
Posts: 9

PostPosted: Thu Dec 29, 2005 3:41 pm    Post subject: how to calculate the commarea?
Reply with quote

Hi to all,
If we add an extra record in copy book and try to implement the same in our cobol program. how will we do change the commarea.

give me answer asap.
Back to top
View user's profile Send private message
References
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Thu Dec 29, 2005 4:26 pm    Post subject:
Reply with quote

The length of the commarea is not affected unless you are passing the copybook in the commarea.
Back to top
View user's profile Send private message
shamtab

New User


Joined: 19 Aug 2005
Posts: 3
Location: INDIA

PostPosted: Fri Dec 30, 2005 4:12 pm    Post subject: Re: how to calculate the commarea?
Reply with quote

Thanks Rexx Guy for the reply.

But the issue here is that we are changing the copybook with an extra new field and pass the added field length in the Linkage section of the main COBOL Program as DFHCOMMAREA

So how do we adjust the length of the COMMAREA to the new length.

We already have 01 DFHCOMMAREA PIC X(2105) in the main program and we are adding a new field of length X (20) in the copybook so how we will add the DFHCOMMAREA in the main program.

Please suggest ASAP.
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Fri Dec 30, 2005 4:41 pm    Post subject:
Reply with quote

You will need to add the 20 bytes to the comarea length and the area you are moving it into. Perhaps I'm failing to see the problem this appears to be a simple change.
Back to top
View user's profile Send private message
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