0% found this document useful (0 votes)
133 views16 pages

Ibm Mainframes: CICS Training Class-07

This document provides information about the interface between CICS and DB2. It states that CICS provides an interface to DB2, and that DB2 requires a CICS attachment facility to connect to CICS. It also describes how a CICS program can issue SQL commands to access DB2 data. It provides details on how DB2 database access is defined in the RACF table, and explains the preparation process for a COBOL-CICS-DB2 program involving compilation, binding, linking and loading. It also gives an overview of various internal CICS commands for tasks like obtaining the current time, delaying processing, and starting new transactions. Finally it lists some common CICS-supplied transactions.

Uploaded by

ravikiran_8p
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views16 pages

Ibm Mainframes: CICS Training Class-07

This document provides information about the interface between CICS and DB2. It states that CICS provides an interface to DB2, and that DB2 requires a CICS attachment facility to connect to CICS. It also describes how a CICS program can issue SQL commands to access DB2 data. It provides details on how DB2 database access is defined in the RACF table, and explains the preparation process for a COBOL-CICS-DB2 program involving compilation, binding, linking and loading. It also gives an overview of various internal CICS commands for tasks like obtaining the current time, delaying processing, and starting new transactions. Finally it lists some common CICS-supplied transactions.

Uploaded by

ravikiran_8p
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPSX, PDF, TXT or read online on Scribd
You are on page 1/ 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