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
 

 

COMMAREA(Of WS) Vs DFHCOMMAREA(of linkage)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Lkmi

New User


Joined: 04 Mar 2005
Posts: 53
Location: Newyork

PostPosted: Fri Jan 20, 2006 3:39 am    Post subject: COMMAREA(Of WS) Vs DFHCOMMAREA(of linkage)
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?????


I did read the posts on this topic and was still not clear with the concept.
Back to top
View user's profile Send private message

kanhaiya.a

New User


Joined: 22 Nov 2005
Posts: 11
Location: Pune

PostPosted: Fri Jan 20, 2006 12:26 pm    Post subject:
Reply with quote

COMM-AREA - this is ur working storage variable which could be given any name as u might know.
It contains values which u want to use for the next execution(pseudo-conversational programs) of same program or any other program ur calling.
To retain the value for the next execution of the same program u have to write the following code during return...
EXEC CICS
RETURN TRANSID('Transaction-ID')
COMMAREA(COMM-AREA)
END-EXEC

DFHCOMMAREA- it is defined in the linkage section which receives the values passed from the first execution of the same program or from some other program which has linked to this program.
u can use the values from DFHCOMMAREA directly or by moving to COMM-AREA variables.
Back to top
View user's profile Send private message
Lkmi

New User


Joined: 04 Mar 2005
Posts: 53
Location: Newyork

PostPosted: Wed Jan 25, 2006 4:16 am    Post subject:
Reply with quote

Well, I see that In my program, the COMM-AREA variable which is used in the return command is a 05 level variable of DFHCOMMAREA and there is no communication area defined in the working storage.

Do this mean that DFHCOMMAREA would suffice and there is no necessity for the working storage commarea??????


01 DFHCOMMAREA.
05 COMM-AREA-DATA PIC X(4096).
05 CA-STD-DATA REDEFINES COMM-AREA-DATA.

EXEC CICS RETURN
TRANSID (CA-CURR-CICS-TRN-CD)
COMMAREA(CA-STD-DATA)
LENGTH (WS-STD-CA-LENGTH)
RESP (THE-CICS-RESPONSE)
END-EXEC.
Back to top
View user's profile Send private message
filler

New User


Joined: 03 Aug 2005
Posts: 5

PostPosted: Wed Jan 25, 2006 3:12 pm    Post subject:
Reply with quote

It is ok, just when ur program is linked or started by other program.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Number of parameters in Linkage kregen COBOL Programming 4 Wed Jan 27, 2016 5:13 pm
No new posts DFHCOMMAREA addressing akodakka CICS 4 Fri May 30, 2014 5:17 pm
No new posts COBOL Parmlist and Associated Linkage... Bill O'Boyle COBOL Programming 10 Fri Dec 20, 2013 9:43 pm
No new posts Data passing using DFHCOMMAREA sachinji84 CICS 2 Thu Aug 01, 2013 12:50 am
No new posts Linkage Section for Three programs Mr.Niceguy COBOL Programming 13 Sat Jun 01, 2013 7:21 pm


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