View previous topic :: View next topic
|
Author |
Message |
babujangam
New User
Joined: 14 Dec 2005 Posts: 8
|
|
|
|
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 |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
The length of the commarea is not affected unless you are passing the copybook in the commarea. |
|
Back to top |
|
|
shamtab
New User
Joined: 19 Aug 2005 Posts: 4 Location: INDIA
|
|
|
|
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 |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
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 |
|
|
|