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

How do we handle tables in CICS


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

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Tue Jun 12, 2007 9:57 am
Reply with quote

How do we handle tables in CICS.
Is there any manuals available?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 12, 2007 10:11 am
Reply with quote

Which tables you are referring?
FCT
TCT
PCT
DCT
RCT
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Tue Jun 12, 2007 10:19 am
Reply with quote

No...I just wanted to know the general commands used in a CICS DB2 program.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 12, 2007 10:35 am
Reply with quote

Still your question is not clear.

Are you asking what are the possible SQL statements used in CICS/DB2 program?
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Tue Jun 12, 2007 10:41 am
Reply with quote

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

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Tue Jun 12, 2007 10:46 am
Reply with quote

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

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 12, 2007 10:47 am
Reply with quote

DECLARE CURSOR
OPEN CURSOR
CLOSE CURSOR
FETCH

SELECT
INSERT
DELETE
UPDATE

COMMIT
ROLLBACK

For syntax you can refer to manuals..
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Tue Jun 12, 2007 9:10 pm
Reply with quote

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
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 Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top