Professional Documents
Culture Documents
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
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
CICS TRANSLATION
DBRM MEMBER
LOAD MODULE
AS(TIME
/sed to obtain current date and time Synta34
&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(/) ]
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
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
!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 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(
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
CEMT 4
Display )he Status #f )he CICS > System 'rocess <er )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 )",