View previous topic :: View next topic
|
Author |
Message |
KS
New User
Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
I invoke a transaction from CICS. The program has a code: MOVE DFHCOMMAREA TO WS-AREA. What happens to this transaction? What happens to the other transactions?
Kindly explain?
Thanks,
KS |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
What happens to this transaction? What happens to the other transactions? |
Would not affect other transactions, after this statement also data would be in COMMAREA.
Regards,
Priyesh. |
|
Back to top |
|
|
vidhyanarayanan
New User
Joined: 23 Dec 2005 Posts: 52
|
|
|
|
hi,
Just c this example
EXEC CICS
RETURN TRANSID('ABCD') COMMAREA(WS-1) LENGTH(WS-L)
END-EXEC.
in this, working storage item WS-1 of length WS-L is passed to the transaction ABCD . the program for the transaction 'ABCD' should have
DFHCOMMAREA of size WS-L in the linkage section to receive the information passed by the RETURN of this program.
hope this ll help you ..
regards,
vidhya |
|
Back to top |
|
|
sunish_sr
New User
Joined: 02 Jan 2006 Posts: 9 Location: Chennai
|
|
|
|
HI,
This statement will copy the contents of DFHCOMMAREA to WS-AREA for the further usase of the data passed. This will not affect any other transactions.
Sunish S |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
This will be used only in called programs.. it is used to move the values passed to it from the calling program's WS variables to this program's WS variables.. |
|
Back to top |
|
|
Hemant
New User
Joined: 23 May 2006 Posts: 1
|
|
|
|
USED TO PASS USER DATA BETWEEN DIFFERENT PROGRAMS OR SAME PROGRAMS. IT IS SPECIFIED IN THE LINKAGE SECTION OF THE PGM. THIS WILL NOT AFFECT ANY OTHER TRANSACTIONS. |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
Hemant,
MOVE DFHCOMMAREA TO WS-AREA is specified in the linkage section???????
Thtz news to me..[/quote] |
|
Back to top |
|
|
karthick sivakumar
New User
Joined: 16 Mar 2006 Posts: 16 Location: india
|
|
|
|
hi,
i can't understand why a move statement is used in linkage section!!. if u want the values of dfhcommarea in ws-area ( if both are in linkage section) use a redefines clause.
Regards,
Karthick |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
MOVE statement is not in LINKAGE SECTION. I dont know y hemant told like that. It can be present only in the Identification Division..
Karthick,
that was just an exclamation. It was not a statement.. i know MOVE cannot be in Linkage. Was just asking Hemant.. |
|
Back to top |
|
|
appasi
New User
Joined: 12 Dec 2005 Posts: 20 Location: Bangalore
|
|
|
|
Hi arunjosephaj,
Sorry if i got wrong, your message,
MOVE statement is not in LINKAGE SECTION. I dont know y hemant told like that. It can be present only in the Identification Division..
Is it means that MOVE statement present only in Identification division,
Move statement is allways used in Procedure Division only, not in Identification division.
If i am wrong please correct me.
Thanks,
appasi |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
Yes Appasi, u r right only.. i meant Procedure Division only... Thnkx Appasi for correcting me.. |
|
Back to top |
|
|
|