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
 

 

MOVE DFHCOMMAREA TO WS-AREA.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: MOVE DFHCOMMAREA TO WS-AREA.
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: 1452
Location: Chicago, IL

PostPosted: Tue Mar 21, 2006 10:02 am    Post subject: Re: MOVE DFHCOMMAREA TO WS-AREA.
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    Post subject:
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    Post subject: MOVE DFHCOMMAREA TO WS-AREA.
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: MOVE DFHCOMMAREA TO WS-AREA.
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    Post subject:
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    Post subject:
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    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 DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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