Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the use of CSA,CWA,TCTUA,TWA ?

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

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Thu Sep 29, 2005 10:32 pm    Post subject: What is the use of CSA,CWA,TCTUA,TWA ?
Reply with quote

Hi all

Pls help me in understanding the concepts what i mentioned in the subject.

And how to use those in a cobol program.provide me with an exapmle.


Thanks
Aravind
Back to top
View user's profile Send private message

kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Sep 30, 2005 6:40 pm    Post subject:
Reply with quote

When your COBOL (CICS) program is going to be executed is a particular CICS region, then a area is being assigned for your program. To link that area with your program what you do is take the address of that area and it is being stored in one of the varibale defined in terminal user entry table which will be used by your terminal keep track of the area in CICS.
To attain these we use following commnads.

EXEC CICS ADDRESS
CSA(ADDRESS OF CICS-CSA)
END-EXEC.

EXEC CICS ADDRESS
TCTUA(ADDRESS OF CICS-TUE)
END-EXEC.

Correct me if i am wrong.
Back to top
View user's profile Send private message
Athanga

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Fri Sep 30, 2005 9:23 pm    Post subject: Re: What is the use of CSA,CWA,TCTUA,TWA ?
Reply with quote

Thanks Kanak....

One more doubt i have...
CICS-CSA==> can be a copy book also know....

how to define the variable in terminal user entry table..is it like normal FCT and RCT entry???
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Fri Sep 30, 2005 9:43 pm    Post subject:
Reply with quote

CWA is an area in CICS that is available across all tasks within that CICS transaction. Normally, if CWA is used by your shop there would be a program in the PLT that gets executed when the region comes up to populate these values. If CWA is used, if good programming standards are followed, there should be a copybook already defined showing the layout of the CWA. CWA is not terminal/task specific. CWA is used for passing/accessing information across mutiple tasks and multiple terminals.

TCTUA is an area that is allocated for each terminal. TCTUA is used to pass data across mutliple tasks within the same terminal. When a terminal is defined to CICS, the TCTUA size is also defined. Would be worth getting in touch with your CICS support personel to find out the size of your TCTUA. Another method of passing such information is use of TSQs where the first four characters for the TSQ name is EIBTRMID and the last four characters are EIBTRNID.

And then there is TWA (Task Work Area) that is used to pass data across multiple programs within a single CICS task. Another method of passing data within a single task is COMMAREA. The size of the TWA is defined when the transaction is defined in the PCT.
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Fri Sep 30, 2005 9:46 pm    Post subject:
Reply with quote

CSA is an area that is exclusively used by CICS. If you look at the address of CSA and CWA, you would see that the CWA immediately follows the CSA. Similarly there is TSA before a TWA.
Back to top
View user's profile Send private message
Athanga

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Fri Sep 30, 2005 11:25 pm    Post subject: Re: What is the use of CSA,CWA,TCTUA,TWA ?
Reply with quote

Thanks a lot man...
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 How to define TCTUA / USERAREALEN for... Alan Playford CICS 3 Wed Nov 26, 2014 3:30 pm
No new posts What does 'EXEC CICS ADDRESS TCTUA' Santoshhn Mainframe Interview Questions 1 Thu Feb 09, 2006 3:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us