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

Difference between COMMAREA and Linkage section ???


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sundar_amn

New User


Joined: 30 Jun 2005
Posts: 3

PostPosted: Wed Jul 06, 2005 8:07 pm
Reply with quote

In CICS program's DFHCOMMAREA is used to pass data from one program to another program. This needs to be defined under the LINKAGE SECTION.

Apart from the DFHCOMMAREA, in some programs, i see 01 level variables declared. Where are they used.

Could some one explain. :|
Back to top
View user's profile Send private message
mandyzzzz

New User


Joined: 04 Jul 2005
Posts: 23

PostPosted: Wed Jul 06, 2005 8:15 pm
Reply with quote

COMMAREA is only for CICS programs...for other cobol programs linkage section is used to pass data from one program to another
Back to top
View user's profile Send private message
sundar_amn

New User


Joined: 30 Jun 2005
Posts: 3

PostPosted: Wed Jul 06, 2005 9:09 pm
Reply with quote

Yes. What i said is in CICS progra , apart from DFHCOMMAREA i see some 01 level variabels in the LINKAGE SECTION.

any idea?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Thu Jul 07, 2005 1:26 am
Reply with quote

either they are not usesd or this program calls other programs and passes/receives information.


Dave
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Thu Jul 07, 2005 1:33 am
Reply with quote

sorry, make that called by other programs


Dave
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jul 10, 2005 4:15 am
Reply with quote

COMMAREA is an overlay with special properties used in the LINKAGE SECTION similar to those other 01 entries you see.

They are probably used as overlays for data retreived by the CICS pgm using the SET clause in such cmds as READ, GETMAIN, etc. See the CICS RefE Manual for othe cmds that use SET.

What I mean by "overlay" is that the datanames in the LS are used to reference the various parts of the data passed or "returned" to your pgm. Remember that the data hasn't "moved" to your pgm; the data address was moved to your pgm and used as a base address for the datanames you defined in your LS.
Back to top
View user's profile Send private message
Lkmi

New User


Joined: 04 Mar 2005
Posts: 53
Location: Newyork

PostPosted: Thu Jan 19, 2006 10:02 am
Reply with quote

is commarea that is defined in the working storage section is for retaining the values everytime the screen is thrown with the same program

and DFHCOMMAREA is used to pass the data from the program to a new program , say when the new screen is called thru a PF key?????
Back to top
View user's profile Send private message
Lkmi

New User


Joined: 04 Mar 2005
Posts: 53
Location: Newyork

PostPosted: Thu Jan 19, 2006 10:03 am
Reply with quote

just edited the topic!!!
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts CICS COMMAREA CICS 3
Search our Forums:

Back to Top