Sie sind auf Seite 1von 28

z/OS Introduction and Workshop

CICS

© 2017 ©IBM Corporation


2009 IBM Corporation
Unit Objectives
After completing this unit, you should be able to:
•Describe CICS Processing
•Describe CICS Application Programming Interface (API)
•List 6 Programming Languages used write CICS Applications
•List 2 CICS Programming Techniques
•Describe CICS System Definition
•List 3 types of CICS Supplied Transactions

2 © 2017 IBM Corporation


Typical mainframe workloads (Batch and Online)

A p p l i c a ti o n P r o g r a m

P r o c e s s d a ta to
B a t c h jo b In p u t p e r fo r m a
D a ta p a r ti c u l a r ta s k

O u tp u t D a ta

A p p l i c a ti o n P r o g r a m

Q u e ry
A cce ss sh a re d
d a ta o n b e h a l f o f
R e p ly o n lin e u s e r
O n lin e ( r e a l t im e ) t r a n s a c t io n

3 © 2017 IBM Corporation


z/OS Transaction System

z /O S
T r a n s a c tio n a l
s y s te m

A p p lic a tio n
DA TA Program

User

4 © 2017 IBM Corporation


What is CICS?

Customer Information Control System

Transaction Processor:
Run online applications
Many sessions with the same application(s)

Manages the sharing of resources

Maintains integrity of data

Prioritization of execution, with fast response

5 © 2017 IBM Corporation


CICS Architecture

CICS functions:
Application programming
Web services
Web interfaces
Java applications in CICS
Network services
Database services
External interfaces
Customization
System management
Performance and monitoring
Security
Recovery and restart

6 © 2017 IBM Corporation


CICS Message Format (DFHCCnnnn)
where CC is a CICS subcomponent
AC abnormal condition program component EJ Enterprise Java domain
AD Development Deployment Tool messages EM Event Manager domain
AI auto-install terminal model manager (AITM) ER user backout program
AM RDO allocation manager EX external CICS interface
AP application domain FC file control component
BA business transaction services (BTS) domain FE terminal test program component
BR Bridging to 3270 transactions IC interval control program
CA RDO command utility routine IE IP ECI domain
CC catalog domain (local and global) II CORBA and IIOP domain
CE sign on program component IN indoubt testing tool
CF coupling facility data tables server IR interregion component
CP CPI Communications component JC online journal control component
CQ CQ console messages KC transaction/profile manager
CR ISC remote scheduler component KE kernel domain
CZ class libraries domain LD loader domain
DB CICS database control component LG logger domain
DD directory manager LM lock manager domain
DH Document handler component MC BMS message control program component
DM domain manager domain ME message domain
DP debugging profile domain MN monitor domain
DS dispatcher domain MU message editing utility program
DU dump domain MV MVS™ RESMGR exit stub
DX database control component NC Named counter sequence number server
NQ enqueue manager domain
7 © 2017 IBM Corporation
CICS Message Format (DFHCCnnnn)
where CC is a CICS subcomponent
OT Object Transaction Services domain ST statistics domain
PA parameter manager domain SZ front end programming interface (FEPI)
PC program control program component TC terminal control program component
PD print dump exit routine DFHPDX TD transient data component
PG program manager domain TF terminal facility manager
PI pipeline manager domain TI timer domain
PR partner resource manager TM system termination program component
PS system spooler interface control component TO terminal object resolution program component
RD RDO allocation manager TP BMS terminal page retrieval program component
RM recovery manager TR trace domain
RP ONC RPC TS temporary storage domain
RS communications resynchronization program UP measured usage license charging support
RT ISC transaction routing component macro
RU recovery utility program US user domain
RX RRS-coordinated EXCI domain WB Web Interface
RZ Request Streams domain XA XRF alternate component
SH Scheduler domain XC XRF CICS availability manager
SI system initialization component XG XRF general component
SJ Scaleable Java domain XM transaction manager
SK sub task control program component XO XRF CICS availability manager
SM storage manager domain XQ shared temporary storage queue pool server
SN signon component XS security component
SO Sockets domain ZC terminal control working set component
SR system recovery component ZE TCP error message writer component
8 © 2017 IBM Corporation
ZN syncpoint component
CICS transaction flow
O p e r a t in g S y s t e m

PP rr oo gg rr aa mm
ABCD LL iibb rr aa rr yy
Te rm i n a l S yste m 33
C o n tro l S e rv i c e s
S to ra g e
2 M g m t.

11
F ile o r D B

9 © 2017 IBM Corporation


CICS transaction flow (Cont…)
O p e r a t in g S y s t e m

PP rr oo gg rr aa mm
(m e n u LL iibb rr aa rr yy
s c re e n )

F i le
B M S PP rr oo gg rr aa mm
C o n tro l
A B C D 01 F ile o r D B
5
4

10 © 2017 IBM Corporation


CICS transaction flow (Cont…)

O p e r a t in g S y s t e m

U s e r 's PP rr oo gg rr aa mm
N e xt LL iibb rr aa rr yy
In p u t
66
F i le
C o n tro l
PP rr oo gg rr aa mm
88 ABCD01 77 F ile o r D B

BM S

11 © 2017 IBM Corporation


API Command Summary
CICS Application Programming

Languages Application Program Interface (API)


COBOL EXEC CICS ….
Java
C/C++ Abend support File control services
REXX APPC basic conversation Interval control services
Assembler APPC mapped conversation Journaling
Authentication Monitoring
PL/I Batch data interchange Named counter server
BMS Program control
Built-in functions Scheduling services
Business transaction services Security services
(BTS) Spool Interface (JES)
Channel commands Storage control
Console support Syncpoint
Diagnostic services Task control
Document services TCP/IP services
Environment services Temporary storage control
Event processing Terminal control
Exception support Transient data
Web support
Web services

12 © 2017 IBM Corporation


Typical CICS Business Application

13 © 2017 IBM Corporation


Typical CICS Business Application

14 © 2017 IBM Corporation


CICS Programming Technique (Conversational)
P R O G V 000

U ser M enu
Types E n te r a c c o u n t _ _ _ _ _ _
In p u ts
F u n c ti o n c o d e _ _ _ _ _ _
SEND M AP
W A IT
M enu R E C E IV E M A P
R E A D F IL E U P D A T E
E n te r a c c o u n t 1 2 3 4 _
F u n c ti o n c o d e M _ _ _ _

R e c o r d U p d a te SEND M AP
U ser
E n te r a c c o u n t 1 2 3 4 W A IT
Types N a m e : S m i th
C hanges A m o u n t: $ 1 0 .0 0 R E C E IV E M A P
D a te : 0 5 /2 8 /0 4 R E W R IT E F IL E

M enu SEND M AP
R E TU R N
E n te r a c c o u n t _ _ _ _ _ _
F u n c ti o n c o d e _ _ _ _ _ _
" U p d a te c o n fi r m e d "

15 © 2017 IBM Corporation


CICS Programming Technique (Pseudo-Conversational)
P R O G V 000

U ser M enu S E N D M A P ...


Ty pes E n te r a c c o u n t _ _ _ _ _ _ R E T U R N T R A N S ID ( V 0 0 1 ) ....
In p u ts F u n c ti o n c o d e _ _ _ _ _ _

P R O G V 001
M enu RE C E IV E M A P ...
E n te r a c c o u n t 1 2 3 4 _ ....
F u n c ti o n c o d e M _ _ _ _ RE A D F IL E ...
....
SE N D M A P ...
...
R e c o r d U p d a te RE T U R N T R A N S ID ( V 0 0 2 ) ....
U ser
E n te r a c c o u n t 1 2 3 4
Types N a m e : S m i th
C hanges A m o u n t: $ 1 0 .0 0
D a te : 0 5 /2 8 /0 4 P R O G V 002

RE C E IV E M A P ...
....
M enu RE A D F IL E U P D A T E ....
E n te r a c c o u n t 1 2 3 4 RE W R IT E F IL E ....
N a m e : S m i th ....
A m o u n t: $ 9 9 .5 0 SE N D M A P ...
D a te : 0 5 /2 8 /0 4 ...
" U p d a te C o n fi r m e d " RE T U R N T R A N S ID ( V 0 0 0 ) ...

16 © 2017 IBM Corporation


CICS vs. J2EE Model-View-Controller (MVC) organization

17 © 2017 IBM Corporation


Start CICS Address Space
S CICSTS41,START=INITIAL
DFHPA1101 DFHSIT6$ IS BEING LOADED.
DFHPA1103 END OF FILE ON SYSIN.
DFHSM0113I Storage protection is not active.
DFHDM0101I CICS is initializing.
DFHW20100I Web2.0 domain initialization has started.
DFHWB0109I Web domain initialization has started.
DFHSO0100I Sockets domain initialization has started.
DFHEJ0101 Enterprise Java domain initialization has started.
Java is a trademark of Sun Microsystems, Inc.
DFHDH0100I Document domain initialization has started.
DFHXS1100I Security initialization has started.
DFHSI1500 CICS startup is in progress for CICS Transaction
Server Version 4.1.0
DFHXS1102I Security is inactive.
DFHWB0110I Web domain initialization has ended.
DFHSI1502I CICS startup is Initial.
DFHW20101I Web2.0 domain initialization has ended.
DFHFC0100I ile Control initialization has started.
DFHTD0100I Transient Data initialization has started.
DFHFC0101I File Control initialization has ended.
DFHWB1007I nitializing CICS Web environment.
DFHWB1008 CICS Web environment initialization is complete.
DFHSI1517 Control is being given to CICS.
18
DFHEJ0102 Enterprise Java domain initialization has ended.
© 2017 IBM Corporation
CICS Activity Messages Logged in MSGUSR
SDSF STATUS DISPLAY
PREFIX=CICS* DEST=(ALL) OWNER=*
NP JOBNAME JobID Queue
? CICSTS41 STC00807 EXECUTION

SDSF JOB DATA SET DISPLAY - JOB CICSTS41


PREFIX=CICS* DEST=(ALL) OWNER=* SYSNAME=
NP DDNAME StepName
JESMSGLG JES2
JESJCL JES2
JESYSMSG JES2
SYSPRINT CICSTS41
SYSPRINT CICSTS41
DFHCXRF CICSTS41
s MSGUSR CICSTS41
CEEMSG CICSTS41
CEEOUT CICSTS41
COUT CICSTS41
CRPO CICSTS41
19 © 2017 IBM Corporation
MQSeries

html 3270

Network

Communications Server

MQSeries CICS WAS CICS MQSeries


TOR TOR

CICS CICS CICS CICS


AOR AOR AOR AOR

CICS IMS
DB2
FOR DB

20 © 2017 IBM Corporation


CICS
Resource Definitions
Administration
CICS
System
Definition

21 © 2017 IBM Corporation


CICS 3270 Access

22 © 2017 IBM Corporation


CICS 3270 Signon Screen – Authentication Disabled

23 © 2017 IBM Corporation


CICS 3270 Access – CICS Supplied Operator Transaction

24 © 2017 IBM Corporation


CICS 3270 Access – CICS Supplied Operator Transaction

25 © 2017 IBM Corporation


CICS Supplied Transactions

CEMT (Operations)

CEDF (Program Debug)

CEDA (Administration)
CEDB
CEDC

Many supplied CICS All supplied CICS Manual dedicated


transactions exist for transactions begin to CICS Supplied
administration and with C Transactions
operation

26 © 2017 IBM Corporation


CICS Professional Manuals and Documentation

27 © 2017 IBM Corporation


Unit summary
Having completed this unit, you should be able to:
Describe CICS Processing
Describe CICS Application Programming Interface (API)
List 6 Programming Languages used write CICS Applications
List 2 CICS Programming Techniques
Describe CICS System Definition
List 3 types of CICS Supplied Transactions

28 © 2017 IBM Corporation

Das könnte Ihnen auch gefallen