View previous topic :: View next topic
|
Author |
Message |
lekshmi_ci
New User
Joined: 14 Mar 2007 Posts: 60 Location: Thiruvananthapuram
|
|
|
|
How do we handle tables in CICS.
Is there any manuals available? |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Which tables you are referring?
FCT
TCT
PCT
DCT
RCT |
|
Back to top |
|
|
lekshmi_ci
New User
Joined: 14 Mar 2007 Posts: 60 Location: Thiruvananthapuram
|
|
|
|
No...I just wanted to know the general commands used in a CICS DB2 program. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Still your question is not clear.
Are you asking what are the possible SQL statements used in CICS/DB2 program? |
|
Back to top |
|
|
lekshmi_ci
New User
Joined: 14 Mar 2007 Posts: 60 Location: Thiruvananthapuram
|
|
|
|
Yes, The possible SQl statements used iin a DB2 pgm.
Eg: To read a record from the table,write a record,update,delete. |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
Use the regular EXEC SQL END-EXEC blocks to code your SQL statements. DB2 code remain as that for a cobol program, the implementation part(CAF) is transparent to application programmer. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
DECLARE CURSOR
OPEN CURSOR
CLOSE CURSOR
FETCH
SELECT
INSERT
DELETE
UPDATE
COMMIT
ROLLBACK
For syntax you can refer to manuals.. |
|
Back to top |
|
|
socker_dad
Active User
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
|
|
|
|
I highly recommend Murach's DB2 For the COBOL Programmer, Part 2. There is an excellent example of a CICS program used to access a DB2 table for Add, Change and Delete transactions.
www.murach.com
They also have a book called CICS for the COBOL Programmer and a CICS Desk Reference. They have saved my rear end on several occasions. |
|
Back to top |
|
|
|