You are on page 1of 16

IBM MAINFRAMES

CICS Training Class-07

CICS DB2

CICS provides interface to DB2 DB2 requires CICS attachment facility to connect itself to CICS CICS program can issue commands for DB2 with SQL in order to access DB2 data base

!"!C SQL function #ptions !$D%!"!C

DB2 database access by CICS

#perating System CICS &pplication 'rogram


Terminal DATASETS CICS attachment facility

DB2 Region

DATABASE

DB2 entries

DB2%CICS connection is defined with in (C) * (esource Control )able+ )he information in (C) is used to control interaction between CICS and DB2 Command for (C) entry

C!D& D!, DB2!*DB2-+ .*.(#/' $&0!+ C!D& I$S DB2!*DB2-+ .*.(#/' $&0!+
In this provide the plan name and transaction id

C!D& D!, DB2)*DB2)+ .*.(#/' $&0!+ C!D& I$S DB2)*DB2)+ .*.(#/' $&0!+
I$ )1IS '(#2ID! )1! )&S&C)I#$ ID &$D entry id

re!arati"n C#B#$-CICS-DB2 !r"gra%


SOURCE PROGRAM

CICS TRANSLATION

DB2 PRE COMPILATION

DBRM MEMBER

COBOL COMPILATION BIND PROCESS

LINK EDIT PLAN PACKAGE

LOAD MODULE

Inter&al and Tas' c"ntr"l

AS(TIME

/sed to obtain current date and time Synta34

EXEC CICS ASKTIME ABSTIME(DATAITEM) END-EXEC

&BS)I0! return the time in pac5ed decimal format Data item 'IC clause is 6*-7+ comp

F#RMATTIME
Used to format the time as needed
EXEC CICS FORMATTIME ABSTIME(DATA-ITEM) [YYDDD(DATA-ITEM)] [YYMMDD(DATA-ITEM)] [ MMDDYYYY(DATA-ITEM) ] [ DATESEP(/) ]

[ TIME(DATA-ITEM) ] [ TIMESEP(:)] END-EXEC

Conditions : INVREQ

DE$A)

/S!D to delay the processing of the tas5 )he issuing tas5 is suspended for a specified interval or until the specified time

Synta3 EXEC CICS DELAY INTERVAL(HHMMSS) | TIME(HHMMSS) END-EXEC

C#$D)I#$S 4 !"'!I(!D8 I$2(!Q

START

/sed to start a transaction at the specified terminal and at the specified time o interval Data can be passed to the new transaction

Synta3 EXEC CICS START [TRANSID(TRANSID)] [TERMID(TERMID)] [TIME(HHMMSS) | INTERVAL (HHMMSS)] END-EXEC

Conditions4 I$2(!Q L!$.!((8 )!(0ID!((8 )(&$SID!((

#t*er Inter&al C"%%ands

!AIT4 )o wait for an event to occur RETRIVE4 /sed to retrieve the data passed by the start CANCEL 4 /sed to cancel the interval request EN"4 )o gain e3clusive control over a resource DN"4 )o free the e3clusive control from the resource gained by enq

CICS S+

$IED TRANSACTI#NS

CICS S,!!lied Transacti"ns $ist

CICS transactions have identification codes that start with 9C: and are 7 characters long

Sign off C!S, Sign on C!S$ Command%level interpreter C!CI !3ecution diagnostic facility C!D, 0aster terminal C!0) (esource definition online *(D#+ C!D& )emporary%storage browse C!B(

CICS S,!!lied Transacti"ns

CESN 4 )# SI.$ #$ )# )1! CICS S;S)!0 CESF )# SI.$ #,, <1IC1 B(!&=S the connection between user and CICS If sign on is done for twice at the terminal )he previous operator will be signed off CECI )# build and test the effect of CICS command CECI ASSI#N is used to get the current user%id and terminal%id

CICS S,!!lied Transacti"ns

CEMT 4

Display )he Status #f )he CICS > System 'rocess &lter )he Status #f )he CICS > System 'rocess (emove )he Installed (esource Definitions 'erform ,ew ,unction (elated )o System

CEBR 4 )o browse the contents of CICS temporary storage queues *)SQ+ CEDF to test command level application program interactively

T*an's )",

You might also like