View previous topic :: View next topic
|
Author |
Message |
Athanga
New User
Joined: 29 Sep 2005 Posts: 9
|
|
|
|
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 |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
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 |
|
|
Athanga
New User
Joined: 29 Sep 2005 Posts: 9
|
|
|
|
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 |
|
|
mallikiran
New User
Joined: 07 Sep 2005 Posts: 49
|
|
|
|
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 |
|
|
mallikiran
New User
Joined: 07 Sep 2005 Posts: 49
|
|
|
|
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 |
|
|
Athanga
New User
Joined: 29 Sep 2005 Posts: 9
|
|
|
|
Thanks a lot man... |
|
Back to top |
|
|
|