DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for...

63
DB2 for z/OS: Continuous Delivery of New Features Chris Crone DE DB2 Development Presented by Mark Rader WSC: DB2 for z/OS

Transcript of DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for...

Page 1: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

DB2 for z/OS:

Continuous Delivery of

New Features

Chris Crone – DE DB2 Development

Presented by Mark Rader

WSC: DB2 for z/OS

Page 2: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation2

Agenda

Why we are changing

Migration from DB2 11 to DB2 12

New Function Activation beyond base DB2 12

Catalog Changes

New Function Activation Scenarios

Summary

Appendix

Documentation Proposal

Vendor Support

Page 3: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Why we are changing

Page 4: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation4

DB2 for z/OS Today

We deliver most of our new function in a new release ~every 3 years

DB2 is on 3 year cycle, but many of our customers are on 4 year cycles, hence the interest in skip

release migrations

We develop or retrofit a very limited number of new features in the service stream, but only if

urgent and generally low risk

Deployment of new releases is seen as a disruption by our customers

Many of our customers want new features delivered much faster

Industry and customer trend is to move away from monolithic code delivery towards continuous

delivery model

IBM is moving towards continuous delivery model

Time for us in DB2 to change

Page 5: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation5

Proposals Considered

Faster release cycle -- DB2 vNext in 18 months

DB2 CAC customers gave this a thumbs down

• Not able to take on such a fast migration due to the cost of any version/release migration

• The migration effort would be just as large as moving to a new DB2 version

• Even the promise of skip release migration couldn’t save this proposal

Continuous release cycles

DB2 V12.1, V12.2, V12.3, …. As you order V12, you get what is available

Considerable migration/coexistence challenges and high cost of forward fits

A combination of Service only and Continuous Delivery streams

Continuous delivery on one stream

Page 6: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation6

Strategy for DB2 for z/OS

We are dedicating ourselves to going forward on a continuous delivery model

Radical internal changes are required within DB2 for z/OS Development to do this

DB2 12 is the starting point after GA

There will be significantly higher volume of continuously delivered items

Customers will see a single maintenance stream for DB2 12

New function delivered into that stream

New function will be designed to be easily consumable

Point releases or versions will be a very rare exception

There are reasons why we might want to have a point release or new version. For instance:

• To adopt a new compiler, extend control structures, or enable an architecture level set

DB2 for z/OS Development will have relentless focus on maintaining continuous production level

reliability for you in the service stream

We will deliver new function when the quality is right, and not based on a date

Page 7: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation7

Using Design Thinking and Sponsor Users

A key component of Design Thinking methodology

Deliver items that customers will actually adopt and people believe in

If we cannot find sponsor users then we should not be doing it

Customer input which will be more targeted than before with ESPs

Strong focus on getting the design right up front

Page 8: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Migration from DB2 11 to DB2 12

Page 9: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation9

Function Level

DB2 already has a function level that we expose to applications

The RIBRELX is exposed via various interfaces and is available to applications after a “CONNECT”

statement. For instance the following info is available after a remote connect:

Database Connection Information

Database server = DB2 z/OS 12.1.5

SQL authorization ID = SYSADM

Local database alias = DB2A

RIBRELX values is defined as VV.R.M where M is the Mod level - Since DB2 8:

• Mod Levels 1-4 have been reserved for CM (New Function not Available for DB2 12)

• Mod Levels 5-9 have been reserved for NFM (New Function Available for DB2 12)

Proposal

Extend RIBRELX

Mod levels 100, 200, 300, and 400 will be New Function not Available

Mod level 500-999 will be New Function Available

Page 10: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation10

Migration DB2 11 DB2 12

DB2 12

Catalog

Data Sharing

Coexistence

DB2 12 New

Function Not

Available

FL(V12R1M100)

DB2 12 New

Function

availableCATMAINT

UPDATE

(DSNTIJTC)

-ACTIVATE

FUNCTION

LEVEL

(V12R1M500)

DB2 11

Catalog

DB2 12

Libraries

DB2 11

Libraries

DB2 11

NFM With SPE

1 – 2 months

1 week

Bind with APPLCOMPAT(V10R1) or APPLCOMPAT(V11R1)

Bind with APPLCOMPAT(V10R1), APPLCOMPAT(V11R1), APPLCOMPAT(V12R1M500)

Co-existence

with or

fallback to

DB2 11 is

possible

Co-existence

with or

fallback to

DB2 11 is

NOT possible

Page 11: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation11

-ACTIVATE FUNCTION LEVEL [Knowledge Center]

Important: On successful completion of the command, all function for the specified level, and any previous

levels becomes available. For migration to DB2 12 from DB2 11, the level of V12R1M100 (new function not

available) and V12R1M500 (new function available) are the base function levels. Once V12R1M500 is

adopted, coexistence with and fallback to Version 11 are not possible. Version 11 cannot start. Use of this

command requires that the data sharing group contains no active Version 11 members.

Abbreviation:-ACTIVATE FUNCTION LEVEL(function-level)

Environment: The command can be issued from a z/OS console, a DSN session under TSO, a DB2I panel

(DB2 COMMANDS), an IMS or CICS terminal, or a program using the instrumentation facility interface (IFI).

Data sharing scope: Group

Authorization: To execute this command, you must use a privilege set of the process that includes install

SYSADM.

>>-ACTIVATE-FUNCTION-LEVEL-(VxxRyMxxx)--+-------+--><|-TEST--|

Page 12: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation12

-ACTIVATE FUNCTION LEVEL

DSN7100I -DB1A DSN7GCMD

-DB2A ACTIVATE FUNCTION LEVEL (V12R1M500)

*** BEGIN ACTIVATE FUNCTION LEVEL (V12R1M500)

FUNCTION LEVEL (V12R1M500) SUCCESSFULLY ACTIVATED

CATALOG LEVEL(V12R1M500)

CURRENT FUNCTION LEVEL(V12R1M500)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M500)

HIGHEST POSSIBLE FUNCTION LEVEL(V12R1M500)

DSN9022I -DB2A DSNZACMD '-ACTIVATE FUNC' NORMAL COMPLETION

Page 13: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

New Function Activation beyond base DB2 12

Page 14: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation14

Acronyms

Maintenance level (ML)

DB2LVL on –DIS GROUP output

Sometimes called ‘code level’

Catalog level (CL)

Result of DSNTIJCT job, aka ‘catmaint’

Function level (FL)

Result of –ACTIVATE FUNCTION LEVEL command

APPLCOMPAT level (APPLV)

Result of BIND, REBIND, or SET CURRENT APPLICATION COMPATIBILITY

Page 15: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation15

Maintenance

Rolled in

DB2 12R1M501

New Function

available

-ACTIVATE

FUNCTION LEVEL

(V12R1M501)

DB2

V12R1M500

Catalog

DB2

V12R1M501

Libraries

DB2

V12R1M500

Libraries

DB2 12

(V12R1M500)

1 week

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M500

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500, or V12R1M501

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M500, or V12R1M501

DB2 V12R1M501

New Function

Not Available

FL M501

Libraries

must remain

active

New function activation no Catalog Change

Page 16: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation16

New function activation with Catalog Change

DB2

V12R1M502

Catalog

DB2 V12R1M502

New Function

Not Available CATMAINT

UPDATE

For

V12R1M502DB2

V12R1M501

Catalog

DB2

V12R1M502

Libraries

DB2

V12R1M501

Libraries

DB2 12

(V12R1M501)

1 week

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500, V12R1M501

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500, V12R1M501, or V12R1M502

DB2 12R1M502

New Function

available

-ACTIVATE

FUNCTION LEVEL

(V12R1M502)

Maintenance

Rolled in

Note that once CATMAINT has been run, all members must started at a ML that supports ML502 or above

FL M502

Libraries

must remain

active

Page 17: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation17

New function activation with Catalog Change – Skip FLs

DB2

V12R1M505

Catalog

CATMAINT

UPDATE

For

V12R1M505DB2

V12R1M502

Catalog

DB2

V12R1M507

Libraries

DB2

V12R1M502

Libraries

DB2 12

(V12R1M502)

1 week

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500 - V12R1M502

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500 – V12R1M502, V12R1M503 - V12R1M507

DB2 12R1M507

New Function

available

-ACTIVATE

FUNCTION LEVEL

(V12R1M507)

Maintenance

Rolled in

Note that once CATMAINT has been run, all members must started at a ML that supports ML505 or above

FL M505

Libraries

must remain

active

FL M507

Libraries

must remain

active

Page 18: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation18

Function activation of Previous Level (* Mode)

DB2 12R1M500*

Function

available

-ACTIVATE

FUNCTION LEVEL

(V12R1M500*)

DB2

V12R1M500

Catalog

DB2

V12R1M501

Libraries

DB2 12

(V12R1M501)

DB2 V12R1M501

New Function

Available

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500, or V12R1M501

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M500, or V12R1M501

Bind with APPLCOMPAT V10R1, V11R1, V12R1M500

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M500

REBIND with existing APPLCOMPAT INCLUDING V12R1M501

SET CURRENT APPLICATION COMPATIBILITY up to APPLCOMPAT value

FUNCTION LEVEL M501 Libraries

must remain active

Page 19: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation19

-ACTIVATE FUNCTION LEVEL (to a lower level)

DSN7100I -DB1A DSN7GCMD

-DB2A ACTIVATE FUNCTION LEVEL (V12R1M100)

*** BEGIN ACTIVATE FUNCTION LEVEL (V12R1M100)

FUNCTION LEVEL (V12R1M100) SUCCESSFULLY ACTIVATED

CATALOG LEVEL(V12R1M500)

CURRENT FUNCTION LEVEL(V12R1M100*)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M500)

HIGHEST POSSIBLE FUNCTION LEVEL(V12R1M500)

DSN9022I -DB2A DSNZACMD '-ACTIVATE FUNC' NORMAL COMPLETION

Page 20: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation20

SELECT * FROM SYSIBM.SYSLEVELUPDATES

+---------+---------+---------+---------+-----+-------------------+

|FUNCTION_|PREV_FUNC|HIGH_FUNC|CATALOG_ |OPERA|EFFECTIVE_TIME |

|LVL |TION_LV |TION_LVL |LVL |TION_| |

| | | | |TYPE | |

|---------|---------|---------|---------|-----|-------------------|

1_|V12R1M500|V12R1M100|V12R1M500|V12R1M500|M |2016-06-27 07:31:18|

2_|V12R1M100|V12R1M500|V12R1M500|V12R1M500|F |2016-07-29 14:57:43|

3_|V12R1M500|V12R1M100|V12R1M500|V12R1M500|F |2016-07-29 15:06:47|

+---------+---------+---------+---------+-----+-------------------+

+-----+------------------------------------+-------+

|EFFEC|OPERATION_TEXT |GROUP_ |

|TIVE_| |MEMBER |

|LRSN | | |

|-----|------------------------------------|-------|

1_| … |CATMAINT PROCESSING - DB2DEV | |

2_| … |-ACTIVATE FUNCTION LEVEL (V12R1M100)| |

2_| … |-ACTIVATE FUNCTION LEVEL (V12R1M500)| |

+-----+------------------------------------+-------+

Page 21: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation21

Relationship between Maintenance and Function Level

The Function Level (FL) that a DB2 member is capable of running is directly related to the

maintenance level (ML) of that member

The FL of a DB2 Member is associated with one or more PTFs

An RSU level (monthly or quarterly) may or may not contain PTFs for one or more Function Levels

All members must be capable of supporting a FL before that FL can be activated

Each member has a FL capability – that is the code running on that member is capable of supporting a

specific FL

Maintenance is member scope – members can run code capable of supporting different FLs

FL activation is group scope

Once a FL is active, then all members joining that group must be capable of supporting that FL

It is possible to return to a previous FL

E.G. if you are a FL V12R1M506, you can return to V12R1M504* (wherever I came from). The * will

indicate that the group has previously been at a higher FL

All existing usage of a feature of a FL will continue to be allowed, but new exploitation of the previous FL

will be prevented

Returning to a previous FL will still require that all members joining a group must support the highest

activated FL ever set for the group

Page 22: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation22

Relationship between a Function Level and APPLCOMPAT

The APPLCOMPAT Level (APPLV) of a package is directly related to the Function Level of the

group.

You may not BIND (or set in any other way) an APPLV that is higher than the current FL of the group.

APPLCOMPAT controls DML (SQL and XML), DDL, and DCL (GRANT and REVOKE) capability in an

application (Package). In order to use a function that requires a specific APPLV, the FL for the group must

be at the specific APPLV or Higher – to allow the APPLV to be specified.

The default APPLCOMPAT level for new BINDs is controlled by the zPARM (BAU)

The default APPLCOMPAT level for REBIND is the value currently in the catalog, however it can be

changed by explicitly specifying a specific value on the REBIND.

There is no (urgent) need to change an APPLCOMPAT value for an application that has already been

deployed – there should be nothing that an application that has already been tested and deployed would

need from an new APPLCOMPAT level.

Page 23: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation23

The DB2 Catalog – new concept Catalog Level (CL)

There is usually a direct relation between the DB2 catalog and the DB2 code

Traditionally catalog and code are tightly in sync

DB2 12 migration is an example of this

• When you start DB2 12, you must run CATMAINT before doing anything else

The introduction of the FL will soften this relationship

A catalog change will not be required until the FL that requires that change is activated

A catalog change may require a FL be active before the catalog change occurs

• i.e. Preconditioning

A CL will require all members be at a level that supports the change – this is similar to FL activation.

This implementation will seem familiar to CM, ENFM and NFM in the sense that the concepts are similar

• Running with new maintenance is like running in CM – you can back the maintenance off

• Running CATMAINT prevents backing off any maintenance that is required by that CL – this is similar to ENFM in

the past (you can’t fall back)

• -ACTIVATE FUNCTION LEVEL enables usage of new function (this is similar to NFM)

Page 24: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation24

-DISPLAY GROUP (DB2 11)

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(111)

NEW FUNCTION(X) PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

--------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- --- -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 111 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 111 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 111 MVSC DJ1C DB1CIRLM

DB1D 4 DB1D -DB1D QUIESCED 111 MVSD DJ1D DB1DIRLM

--------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Page 25: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation25

-DISPLAY GROUP (coexistence) – From DB2 12 member

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(V12R1M500)

CURRENT FUNCTION LEVEL(V11R1M500)

HIGHEST ACTIVATED FUNCTION LEVEL(V11R1M500)

HIGHEST POSSIBILE FUNCTION LEVEL(V11R1M500)

PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

-----------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- ------ -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 121500 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 121500 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 121500 MVSC DJ1C DB1CIRLM

DB1D 4 DB1D -DB1D QUIESCED 111500 MVSD DJ1D DB1DIRLM

-----------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Maintenance

level (ML)

Catalog

level

(CL)

Function

level (FL)

Page 26: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation26

-DISPLAY GROUP (new function not available)

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(V12R1M500)

CURRENT FUNCTION LEVEL(V12R1M100)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M100)

HIGHEST POSSIBILE FUNCTION LEVEL(V12R1M500)

PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

-----------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- ------ -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 121500 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 121500 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 121503 MVSC DJ1C DB1CIRLM

DB1D 6 DB1D -DB1D ACTIVE 121503 MVSD DJ1D DB1DIRLM

-----------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Maintenance

level (ML)

Catalog

level

(CL)

Function

level (FL)

Page 27: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation27

-DISPLAY GROUP (New Function Active – but backed off to M502)

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(V12R1M501)

CURRENT FUNCTION LEVEL(V12R1M502*)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M503)

HIGHEST POSSIBILE FUNCTION LEVEL(V12R1M505)

PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

-----------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- ------ -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 121505 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 121505 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 121505 MVSC DJ1C DB1CIRLM

DB1D 4 DB1D -DB1D ACTIVE 121507 MVSD DJ1D DB1DIRLM

-----------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Page 28: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation28

-DISPLAY GROUP (after catmaint)

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(V12R1M506)

CURRENT FUNCTION LEVEL(V12R1M502*)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M503)

HIGHEST POSSIBILE FUNCTION LEVEL(V12R1M507)

PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

-----------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- ------ -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 121507 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 121507 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 121507 MVSC DJ1C DB1CIRLM

DB1D 4 DB1D -DB1D ACTIVE 121507 MVSD DJ1D DB1DIRLM

-----------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Page 29: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation29

-DISPLAY GROUP (proposal for a new V or R)

DSN7100I -DB1A DSN7GCMD

*** BEGIN DISPLAY OF GROUP(.......) CATALOG LEVEL(V12R2M100)

CURRENT FUNCTION LEVEL(V12R1M502*)

HIGHEST ACTIVATED FUNCTION LEVEL(V12R1M503)

HIGHEST POSSIBILE FUNCTION LEVEL(V12R1M505)

PROTOCOL LEVEL(2)

GROUP ATTACH NAME(....)

-----------------------------------------------------------------------

DB2 DB2 SYSTEM IRLM

MEMBER ID SUBSYS CMDPREF STATUS LVL NAME SUBSYS IRLMPROC

-------- --- ---- -------- -------- ------ -------- ---- --------

DB1A 1 DB1A -DB1A ACTIVE 122100 MVSA DJ1A DB1AIRLM

DB1B 2 DB1B -DB1B ACTIVE 122100 MVSB DJ1B DB1BIRLM

DB1C 3 DB1C -DB1C ACTIVE 121505 MVSC DJ1C DB1CIRLM

DB1D 4 DB1D -DB1D ACTIVE 121507 MVSD DJ1D DB1DIRLM

-----------------------------------------------------------------------

SCA STRUCTURE SIZE: 1024 KB, STATUS= AC, SCA IN USE: 11 %

LOCK1 STRUCTURE SIZE: 1536 KB

NUMBER LOCK ENTRIES: 262144

NUMBER LIST ENTRIES: 7353, LIST ENTRIES IN USE: 0

*** END DISPLAY OF GROUP(DSNDB10 )

DSN9022I -DB1A DSN7GCMD 'DISPLAY GROUP ' NORMAL COMPLETION

Page 30: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation30

Function Level Adoption – Best Practices

PTFs (RSUs…) are applied that may increase the Code Level (CL) of a DB2 system

After system is stable on maintenance, execute (if any) catmaint

After execution of catmaint, the system can only be started with a CL that supports the catalog

Activate Function Level

Function not related to SQL, DML, DCL syntax is available

REBIND of packages with any APPLCOMPAT would pick up optimizer enhancements

Non-stabilized dynamic SQL would pick up optimizer / other non-APPLCOMPAT related enhancements

Page 31: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation31

APPLCOMPAT Adoption – Best Practices

After Function Level is considered stable - allow new application feature rollout.

REBIND DBA packages to allow new DDL to be utilized

REBIND application static packages with higher APPLCOMPAT to exploit DDL/DML new

functions/behaviors

REBIND dynamic packages with higher APPLCOMPAT to allow new SQL functions to be used

REBIND distributed packages (***in separate collection) to allow new SQL functions to be used

• Switch applications to use new distributed package collection

Leverage PLANMGMT extended

• REBIND SWITCH (PREVIOUS) to restore static to prior runtime structures

• REBIND SWITCH (PREVIOUS) for dynamic would restore prior APPLCOMPAT

• ***switching to prior collid for distributed dynamic would restore APPLCOMPAT

Page 32: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Applications

Page 33: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation33

Static SQL, DDL, and DCL

In DB2 11, Static SQL is controlled by APPLCOMPAT BIND option

In DB2 11, DML and DCL is controlled by CM/NFM

DB2 12 needs to take into account function levels changing more often and the need to control

applications’ use of new function across one or more function levels

In DB2 12, the APPLCOMPAT BIND option is extended to support function levels (e.g. V12R1M501)

In DB2 12, the APPLCOMPAT BIND option is extended to support DDL and DCL, in addition to DML

Page 34: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation34

Dynamic SQL, DDL, and DCL

In DB2 11, by default, Dynamic SQL executed under the APPLCOMPAT Bind Option

Could be V10R1 or V11R1

• SET CURRENT APPLICATION COMPATIBLITY could be used to SET to V11R1 if in NFM

DB2 12 needs to take into account function levels changing more often and the need to control

applications use of new function across one or more function levels

In DB2 12 the APPLCOMPAT BIND option is extended to support function levels (e.g. V12R1M501) for

both STATIC and DYNAMIC SQL, DDL and DCL

The APPLCOMPAT BIND OPTION controls the MAX value that can be specified in SET CURRENT

APPLICATION COMPATIBILITY

An APPLCOMPAT level will remain active even if the FL is lowered to a * mode (e.g. M501->M500*)

• REBIND of the current APPLCOMPAT value is allowed even if the value exceeds the current *mode FL

• SET CURRENT APPLICATION COMPATIBILITY continues to be allowed up to the value specified on

BIND/REBIND for APPLCOMPAT

Page 35: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation35

New Global Variables

PRODUCTID_EXT

Contains the extended product identifier of the database manager that invoked the function.

The format of the extended product identifier values is pppvvrrmmm, where ppp is a 3- letter product code (such as

DSN for DB2®), vv is the version, rr is the release, and mmm is the modification level (such as '100', '500', '501'). For

example, DSN1201500 identifies DB2 12 after the activation of DB2 12 new function (function level 500 or higher).

CATALOG_LEVEL

Contains the level of the current catalog level.

The format of the catalog level values is VvvRrMmmm, where vv is the version, r is the release, and mmm is the

modification level (such as '100', '500', '501'). For example, V12R1M500 identifies DB2 12 after the activation of DB2

12 new function (function level 500 or higher).

DEFAULT_SQLLEVEL

Contains the value of the default value of the SQLLEVEL SQL processing option (DECPSQLLV).

The format of the default SQL level values is V10R1, V11R1, or VvvRrMmmm, where vv is the version, r is the

release, and mmm is the modification level (such as '100', '500', '501'). For example, V12R1M500 identifies DB2 12

after the activation of DB2 12 new function.

DB2 V11 can query the new built-in global variables. Their values will be:

SYSIBM.PRODUCTID_EXT: DSN111500

SYSIBM.CATALOGLEVEL: V12R1M500

SYSIBM.DEFAULT_SQLLEVEL: NULL

Page 36: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

IBM Data Server Drivers

- ODBC/CLI

- JDBC

Page 37: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation37

New client property to control new function - clientApplCompat

Any level of DB2 Connect drivers should work with DB2 V12, both before and after new function is

activated with no behavior change.

Data server clients and drivers must be at the following levels to exploit DB2 for z/OS function-level

application compatibility of V12R1M501 or greater:

IBM® Data Server Driver for JDBC and SQLJ: Versions 3.72 and 4.22, or later

Other IBM data server clients and drivers: DB2 for Linux, UNIX, and Windows Version 11.1 Modification 1

Fix Pack, or later

clientApplCompat lets you control the capability of the client when updated drivers ship changes to

enable new sever capability. You might what specific control of driver capability when:

DB2 client driver introduces new behavior currently not controlled by DB2 application compatibility

Change needs to be controlled at the application level to ensure compatibility with new behavior

clientApplCompat V12R1M500 is required to access DB2 12 Server capability shipped after GA at

function levels beyond DB2 V12R1M500.

Page 38: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation38

Driver Level clientApplCompat

setting

APPLCOMPAT

setting***

Application Capability

V10.5 FP2(-)

V11

V11 FP1(+)

n/a

n/a

not provided

V10R1

V11R1

V12R1M100

V12R1M500

Applications may exploit DB2 10 functionality

Applications may exploit DB2 11 functionality

Applications may exploit DB2 11 functionality

Applications may exploit DB2 V12R1M500 functionality

V10.5 FP2(-)

V11

V11 FP1(+)

n/a

n/a

not provided

V12R1M501 –

V12R1M5xx

SQLCODE -30025

Function Level V12R1M501 has a dependency on

clientApplCompat being set

V11 FP1(+) V12R1M500

To Exploit function

level V12R1M501

and beyond,

clientApplCompat

must be set

V10R1

V11R1

V11R1M100

V12R1M501

V12R1M5xx –

V12R1M5(zz-1)

Applications may exploit DB2 10 functionality

Applications may exploit DB2 11 functionality

Applications may exploit DB2 11 functionality

Applications may exploit DB2 V12R1M501 functionality

Applications may exploit DB2 V12R1M5xx functionality

Applications may exploit DB2 V12R1M5(zz-1)

functionality

V11 FP1(+) V12R1M501(+) V12R1M500 SQLCODE -30025

clientApplCompat must not exceed the server

APPLCOMPAT setting

Vyy Fpy ### V12R1M5zz V12R1M5zz Applications may exploit DB2 V12R1M5zz functionality

Future function that requires new DRDA data flow

***This is the APPLCOMPAT setting for the IBM Data Server Driver Packages specified by the collection id ### Hypothetical future Driver fixpack needed to support a DB2 for z/OS server change at FL V12R1M5zz

clientApplCompat relationship to DB2 APPLCOMPAT

Page 39: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation39

Data Server Drivers - Pre DB2 11 FP1*

DB2

V12R1M100

-ACTIVATE NEW

FUNCTION

(V12R1M501)

No change in client behavior

Server Capability is limited to APPLCOMPAT(V12R1M500)

DB2

V12R1M501

Libraries

DB2

V12R1M500

Catalog

DB2

V12R1M500

Bind with APPLCOMPAT V10R1, V11R1, V12R1M100

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M100

Bind with APPLCOMPAT V10R1, V11R1, V12R1M100, V12R1M500

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M100, V12R1M500

*Including any any Data Server Driver post DB2 11 FP1 if clientApplCompat = V12R1M500 is not specified

-ACTIVATE NEW

FUNCTION

(V12R1M500)DB2

V12R1M501

FL M501

Libraries

must remain

active

Page 40: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation40

Data Server Drivers - DB2 11 FP1(+)

DB2

V12R1M100

-ACTIVATE NEW

FUNCTION

(V12R1M501)

No change in client behavior – No need to change clientApplcompat until a new DRDA flow is required

DB2

V12R1M501

Libraries

DB2

V12R1M500

Catalog

DB2

V12R1M500

Bind with APPLCOMPAT V10R1, V11R1, V12R1M100

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M100

Bind with APPLCOMPAT V10R1, V11R1, V12R1M100, V12R1M500

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M100, V12R1M500

Run DSNTIJLC or

DSNTIJLR JOB to

BIND COPY CLIENT PACKAGES

setting COLLECTION and

APPLCOMPAT TO “V12R1M500”

Bind with APPLCOMPAT V10R1, V11R1, V12R1M100, V12R1M500, V12R1M501

SET CURRENT APPLICATION COMPATIBILITY V10R1, V11R1, V12R1M100, V12R1M500, V12R1M501

-ACTIVATE NEW

FUNCTION

(V12R1M500)DB2

V12R1M501

FL M501

Libraries

must remain

active

Page 41: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation41

clientApplCompat – control of future function

DB2 12 only allows the new client behavior to control behavior when the APPLCOMPAT package

at the server supports that level of client server function.

We anticipate that at some point in the future, a new server feature will require a new

clientApplCompat level.

For example let’s say a new datatype is added in DB2 12 at DB2 function level DB2 V12R1M5zz.

At that point, client-server applications wanting to exploit that new capability will need to have:

Packages bound at the server with APPLCOMPAT(V12R1M5zz)

clientApplCompat set to V12R1M5zz

A clientApplCompat that exceeds the Server APPLCOMPAT bind option for the data server driver

packages will result in:

-30025 EXECUTION FAILED BECAUSE FUNCTION NOT SUPPORTED BY THE SERVER: LOCATION

location-name PRODUCT ID product-identifier REASON reason-code (sub-code)

Although you “can” advance your clientApplCompat as you increase the APPLCOMPAT of the

data server driver packages – it will only be necessary when new client capability needs to be

exploited.

Best Practice – only change your clientApplCompat when necessary

Page 42: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation42

SQLCA and GET DIAGNOSTIC impacts

SQL CONNECT is enhanced to return the DB2 product ID and its current and functional level of

the connected server in the generated SQLCA

Information about the server is placed in the SQLERRP and SQLERRMC fields

Information in the SQLERRP field contains the server product information• It contains the following information:

• ppp is the product identifier:

'AQT' IBM® DB2 Analytics Accelerator for z/OS

'ARI' DB2 Server for VSE & VM

'DSN' DB2 for z/OS

'JCC' IBM Data Server Driver for JDBC and SQLJ

'QSQ' DB2 for i

'SQL' DB2 for Linux, UNIX, and Windows

• vv The version identifier such as '11' for Version 11.

• rr The release identifier such as '01'.

• m The modification level.

Information in the SQLERRMC field contains the functional levels

• First token contains the functional level of the connected DB2 (e.g. ‘V12R1M506’).

Clients adding new APIs to retrieve the current DB2 functional level

Page 43: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation43

DDF Commands and Messages

-DISPLAY LOCATION

Changed to show the functional level of each connected system

DDF Location Statistics

Changed to show the functional level of each connected system

DDF Accounting Header

Changed to show the functional level of the connected systems

Page 44: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation44

What the Clients see after Connect

CLI introduce a new infotype SQL_DBMS_FUNCTIONLVL for SQLGetInfo api that will return the

function level/buildlevel.

JCC introduce a new getDatabaseFunctionalLevel() API driver that will return a string.

DB2 LUW returns build level (e.g. "n1604281900").

DB2 Z returns function level (e.g. "V12R1M504").

Page 45: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Catalog changes

Page 46: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation46

New catalog table SYSIBM.SYSLEVELUPDATES

A row will be inserted into this table during ACTIVATE FUNCTION LEVEL and CATMAINT UPDATE

Column name Data type Description

FUNCTION_LVL VARCHAR(10) Function level when this record is inserted

PREV_FUNCTION_LVL VARCHAR(10) Previous function level

HIGH_FUNCTION_LVL VARCHAR(10) Highest activated function level

CATALOG_LVL VARCHAR(10) Catalog level when this record is inserted

OPERATION_TYPE CHAR(1) Type of operation : ‘C’ for catalog change, ‘F for function

level, ‘M’ for maintenance update (some form of special

catmaint for instance)

EFFECTIVE_TIME TIMESTAMP(12) Time when a change in function or catalog level has

completed.

EFFECTIVE_LRSN CHAR(10) RBA (or LRSN for data sharing) at the time when a change

in function or catalog level has completed.

OPERATION_TEXT VARCHAR(256) The text of the operation.

GROUP_MEMBER VARCHAR(24) Name of the group member on which the operation was

executed.

Page 47: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation47

FUNCTION_LVL PREV_FUNCTION_LEVEL

HIGH_FUNCTION_LEVEL

CATALOG_LVL OPERATION_TYPE

EFFECTIVE_TIME

OPERATION_TEXT

V12R1M100 V11R1M500 V12R1M100 V12R1M500 C TIME 1 CATMAINT UPDATE UNLDDN V12R1M500

V12R1M500 V12R1M100 V12R1M500 V12R1M500 F TIME 2 ACTIVATE FUNCTION LEVEL(V12R1M500)

V12R1M503 V12R1M500 V12R1M503 V12R1M500 F TIME 3 ACTIVATE FUNCTION LEVEL(V12R1M503)

V12R1M500 V12R1M503 V12R1M503 V12R1M500 F TIME 4 ACTIVATE FUNCTION LEVEL(V12R1M500)

V12R1M500 V12R1M503 V12R1M503 V12R1M505 C TIME 5 CATMAINT UPDATE UNLDDN V12R1M505

V12R1M505 V12R1M500* V12R1M505 V12R1M505 F TIME 6 ACTIVATE FUNCTION LEVEL(V12R1M505)

New catalog table SYSIBM.SYSLEVELUPDATES

Page 48: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation48

New Catalog Columns

Table Name Column Name Data Type Description

SYSACCELERATEDPACKAGES

SYSDYNQRY

SYSPACKCOPY

SYSPACKAGE

SYSQUERY

FNLEVEL VARCHAR(10) Function level of the

package/query at the

time the row was

inserted

SYSCONTROLS

SYSINDEXES

SYSROUTINES

SYSTABLES

REGENERATETS TIMESTAMP(12) Time when the object

was regenerated or

altered

SYSKEYS

SYSENVIRONMENT

CREATEDTS TIMESTAMP(12) Time when the row was

inserted

Listed above are the new columns which have been added in places where

we do not already have timestamp columns. We are not listing all the

existing timestamp columns that could be used with SYSLEVELUPDATES

in a similar fashion to that described on the previous slide.

Page 49: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation49

SELECT LVU.FUNCTION_LVL, LVU.CATALOG_LVL, LVU.EFFECTIVE_TIME,LVU.OPERATION_TEXT

FROM SYSIBM.SYSTABLES AS TAB,SYSIBM.SYSLEVELUPDATES AS LVU

WHERE TAB.CREATOR = 'MY' AND TAB.NAME = 'TABLE1'AND TAB.CREATEDTS > LVU.EFFECTIVE_TIME

ORDER BY LVU.EFFECTIVE_TIME DESCFETCH FIRST 1 ROWS ONLY

Query to find the catalog level and function level when table MY.TABLE1 was created.

Query to find when function level 505 was activated.

FUNCTION_LVL CATALOG_LVL EFFECTIVE_TIME OPERATION_TEXT

V12R1M503 V12R1M500 TIME 3 ACTIVATE FUNCTION LEVEL

(V12R1M503)

SELECT …

FROM SYSLEVELUPDATES AS LVU

WHERE LVU.FUNCTION_LVL = 'V12R1M505'

FUNCTION_LVL PREV_FUNC_LVL HIGH_FUNC_LVL CATALOG_LVL EFFECTIVE_TIME

V12R1M505 V12R1M500* V12R1M505 V12R1M505 2016-04-20-12.38.03.706031000000

Page 50: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Questions? ? ?

Page 51: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Summary

Page 52: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation52

Summary

Starting with DB2 12 New Function will ship in the maintenance stream (ML)

Enabling new function is controlled by use of

Catmaint (CL)

-ACTIVATE FUNCTION LEVEL (FL)

APPLCOMPAT (APPLV)

APPLCOMPAT is extended to apply to DDL, DCL, and to control IBM Data Server Driver

Packages (ODBC, JDBC, .Net, PHP, RUBY… SAP).

SYSLEVELUPDATES contains History on when system changes occurred

Documentation will change to help highlight new function

Working with Vendors to improve communication and early notification of changes, with access to

PTFs prior to general availability

Page 53: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

Thank you!

Page 54: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Appendix

Page 55: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Documentation

Page 56: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation56

Function Level Information: Table of Contents

Info about the DB2 12 product at

GA (traditional “What’s New”

information)

Info about the DB2 12 function

levels (shipped by continuous

delivery)

Topics about the available function

levels and their enhancements, with

the most recent function level on

top

Conceptual information about

continuous delivery and instructions

for activating new capabilities

Page 57: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation57

“Available DB2 function levels” topic

Tip: Bookmark this topic

because it will be updated

every time a new DB2

function level is shipped!

This topic has links to

topics about each new

function level, with the

most recent on top.

The paragraph under

the link summarizes

what is included in the

function level

Page 58: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation58

Info about Individual Function Levels

Title of the function level nnn topics

identifies the function level (V12R1Mnnn)

and the APAR/PTF that enables it.

The opening

paragraph

summarizes the

enhancements.

A table provides basic facts about each

function level.

Example

Page 59: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation59

Information about Individual Function Levels (continued)

After the table of facts, you’ll find one section for each enhancement in the function level,

with a brief overview of that enhancement.

The overview will focus on Who, What, and WOW!

Each section for each enhancement

concludes with links to:• KC topics that provide more details about

the enhancement

• Other resources (white papers, webcasts,

etc.) about the enhancement

Example

Page 60: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation60

Bitemporal support for DB2 Analytics Accelerator (V12R1M505)

Other topics that are

changed for a

function level contain

links back to the

overview of the

function level.

Details about Enhancements Example

Page 61: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation

Vendor Continuous Delivery Process

Page 62: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation62

Pre-Continuous Delivery Vendor Process

Version upgrades

Separate vendor program - early and regular vendor involvement and communication

Code drops starting over a year prior to ESP start

PFS roll-ups starting over a year prior to ESP start

Maintenance updates

Notification of APARs affecting modules or control blocks that vendors have indicated they are sensitive to

Regular sharing of documentation for design changes delivered in maintenance stream

Improved communications to answer ad-hoc queries and aid resolution of high impact problems

Page 63: DB2 for z/OS: Continuous Delivery of New Features 12 Continuous Delivery June 2017.pdf · DB2 for z/OS: Continuous Delivery of New Features Chris Crone –DE DB2 Development Presented

© 2017 IBM Corporation63

Vendor Continuous Delivery Support Summary

Overriding aim is ensure stability of DB2 for z/OS environments

Exploitation is desirable, but secondary concern

Help achieve this through

Improved, earlier, communication of changes

Early access to new maintenance

More consistent and timely update of serviceability information

Periodic longer-view updates

Ongoing use of improved communication channels between vendors and IBM development

In spite of these efforts, Continuous Delivery places greater responsibility upon vendors to invest in

ensuring stability and preventing regression from DB2 maintenance