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

COMMAREA(Of WS) Vs DFHCOMMAREA(of linkage)


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts CICS COMMAREA CICS 3
No new posts OPTLINK linkage convention PL/I & Assembler 3
No new posts "Output" internal table (OD... COBOL Programming 0
No new posts Linkage editor is part of COBOL, z/OS... COBOL Programming 5
Search our Forums:

Back to Top