31
© 2012 IBM Corporation CICS Lunch n Learn Threadsafe by the Book (The Redbook) Gary Andrews Client Technical Specialist: CICS Tools [email protected]

Threadsafe by the book

Embed Size (px)

DESCRIPTION

CICS Lunch n Learn Threadsafe by the Book (The Redbook) Gary Andrews Client Technical Specialist: CICS Tools [email protected]

Citation preview

Page 1: Threadsafe by the book

© 2012 IBM Corporation

CICS Lunch n LearnThreadsafe by the Book(The Redbook)

Gary Andrews

Client Technical Specialist: CICS Tools

[email protected]

Page 2: Threadsafe by the book

The BookSG24-6351-0*

Page 3: Threadsafe by the book

3

Agenda

Why Threadsafe

In The Beginning

Threadsafe Conversion Plan (and my Threadsafe experience)

Questions

Summary

Page 4: Threadsafe by the book

4

Why Threadsafe?

Save CPUTake advantage of modern: Hardware Design Software Design.

Page 5: Threadsafe by the book

In the Beginning Your applications were Sleek and

Fast

Page 6: Threadsafe by the book

Then your applications became popular. Volume increased. You added new functionality. But response time started to decline. Users complained.

How did you fix this mess?

Page 7: Threadsafe by the book

Many of us added hardware.

Page 8: Threadsafe by the book

And we took advantage of multiple engines in the new mainframe hardware.However, we migrated from a simple design……..

CICS RegionApplications

To split regions due to Virtual Storage Constraint

CICS RegionApplication 2

CICS RegionApplication 1

CICS RegionApplication 3

Page 9: Threadsafe by the book

And we added even more regions

Quality Assurance ProductionSystem Test

Development

Application 1

Application 2

Application 3

Application n

Page 10: Threadsafe by the book
Page 11: Threadsafe by the book

As of CICSTS V2.2You have a 3rd option

Open Transaction Environment (OTE)

Page 12: Threadsafe by the book
Page 13: Threadsafe by the book

13

Let’s review the steps of a Threadsafe project

Indentify Exits

Indentify high cpu/high TCB switching transactions

Indentify the programs used by those transactions and review

Mark reviewed programs as Threadsafe (Concurrency=Required (V4.2 and V5.1)

Validate your work.

Page 14: Threadsafe by the book

Indentify Exits• Global User Exits: Exec CICS Inquire Exitprograms

• Using Program DFH0STAT

Page 15: Threadsafe by the book

Indentify Exits• Identify homegrown and vendor exits

Page 16: Threadsafe by the book

Identify High CPU Transactions

Page 17: Threadsafe by the book

Or Identify High TCB Switching Transactions

Page 18: Threadsafe by the book

Now Let’s Identify the Programs Used by Our Target Transactions

Page 19: Threadsafe by the book

After Review Change Concurrency of the Program to either Threadsafe (prior to V4.2) or Required (V4.2 and newer)

Page 20: Threadsafe by the book

Now Let’s Verify Our Work (Part 1)

Page 21: Threadsafe by the book

Now Let’s Verify Our Work (Part 2)

Page 22: Threadsafe by the book

23

QR TCB

L8 TCB

(1) (2) (1) (2)

CICS TS V4.1 Threadsafe CICSAPI

QR TCB

L8 TCB

(2) (3) (2) (3)

CICS TS V4.2 Threadsafe Required

CICS TS V5.1 Threadsafe RequiredL8 TCB

(1) Changemode due to DB2 call

(2) Changemode due to TD Write

(3) Changemode back to L8 due to Required option

What is Concurrency=Required?

Page 23: Threadsafe by the book

If you did a Threadsafe Conversion Prior to CICSTS V4.2

• After you install V4.2 or V5.1

• Review your program definitions.

• Consider changing

• Concurrency=Threadsafe to

• Concurrency=Required

Page 24: Threadsafe by the book

Consider This: Are these transactions Threadsafe Candidates?

Page 25: Threadsafe by the book

What would happen if they were Threadsafe?

• No immediate CPU savings

• Greater throughput for important transactions

• Free up the QR TCB

• Opens the possibility of region consolidation.

• Region consolidation = CPU savings!!!

Page 26: Threadsafe by the book
Page 27: Threadsafe by the book

28

SummaryThreadsafe Project Steps

Indentify Exits

Indentify high cpu/high TCB switching transactions

Indentify the programs used by those transactions and review

Mark reviewed programs as Threadsafe (Concurrency=Required (V4.2 and V5.1)

Validate your work.

Page 28: Threadsafe by the book

You want to transition from this

QR TCB

TCB Switching

L8 TCB’sL8 TCB’s

Page 29: Threadsafe by the book

To ThisAll Important Transactions do not switch off the L8 TCBs

L8 TCB’sL8 TCB’s L8 TCB’s

Page 30: Threadsafe by the book

Find out more

Register for Impact 2014 today-30 CICS related sessions- 2 Labs-Meet CICS Technical specialists-Hear about the latest CICS V5 Portfolio release

CICS Smart SeminarsArrange a customized CICS agenda at your location and hear about the CICStopics you want to hear about. Contact your local IBM representative.

Page 31: Threadsafe by the book