Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between COMMAREA and Linkage section ???

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Difference between COMMAREA and Linkage section ???
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    Post subject:
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    Post subject:
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: 241
Location: Cincinnati OH USA

PostPosted: Thu Jul 07, 2005 1:26 am    Post subject:
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: 241
Location: Cincinnati OH USA

PostPosted: Thu Jul 07, 2005 1:33 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: diff b/w commarea(working storage) and DFHCOMMAREA(linkage )
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COMMAREA and CHANNELS menonkiran CICS 4 Tue Apr 04, 2017 8:14 am
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us