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

MOVE DFHCOMMAREA TO WS-AREA.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Tue Mar 21, 2006 9:51 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Mar 21, 2006 10:02 am
Reply with quote

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
View user's profile Send private message
vidhyanarayanan

New User


Joined: 23 Dec 2005
Posts: 52

PostPosted: Fri Mar 24, 2006 5:08 pm
Reply with quote

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
View user's profile Send private message
sunish_sr

New User


Joined: 02 Jan 2006
Posts: 9
Location: Chennai

PostPosted: Wed Apr 12, 2006 3:43 pm
Reply with quote

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
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Tue May 16, 2006 5:32 pm
Reply with quote

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
View user's profile Send private message
Hemant

New User


Joined: 23 May 2006
Posts: 1

PostPosted: Tue May 23, 2006 10:20 am
Reply with quote

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
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Tue Jun 06, 2006 3:21 pm
Reply with quote

Hemant,
MOVE DFHCOMMAREA TO WS-AREA is specified in the linkage section???????
Thtz news to me..[/quote]
Back to top
View user's profile Send private message
karthick sivakumar

New User


Joined: 16 Mar 2006
Posts: 16
Location: india

PostPosted: Wed Jun 07, 2006 2:21 pm
Reply with quote

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
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Thu Jun 08, 2006 11:44 am
Reply with quote

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
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Jun 08, 2006 1:33 pm
Reply with quote

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
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Mon Jun 12, 2006 2:59 pm
Reply with quote

Yes Appasi, u r right only.. i meant Procedure Division only... Thnkx Appasi for correcting me.. icon_lol.gif
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 - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to move DB2 Installation HLQ DB2 4
No new posts IMS scratch pad area IMS DB/DC 1
No new posts How to move values from single dimens... COBOL Programming 1
Search our Forums:

Back to Top