View previous topic :: View next topic
|
Author |
Message |
sundar_amn
New User
Joined: 30 Jun 2005 Posts: 3
|
|
|
|
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 |
|
|
mandyzzzz
New User
Joined: 04 Jul 2005 Posts: 23
|
|
|
|
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 |
|
|
sundar_amn
New User
Joined: 30 Jun 2005 Posts: 3
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
either they are not usesd or this program calls other programs and passes/receives information.
Dave |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
sorry, make that called by other programs
Dave |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
Lkmi
New User
Joined: 04 Mar 2005 Posts: 53 Location: Newyork
|
|
|
|
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 |
|
|
Lkmi
New User
Joined: 04 Mar 2005 Posts: 53 Location: Newyork
|
|
|
|
just edited the topic!!! |
|
Back to top |
|
|
|