pulse2014 1092

34
RELATIONAL DATA SERVICES »Definition and use cases for System Automation‘s RDS feature

Upload: sun-kim

Post on 14-Jan-2015

68 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Pulse2014 1092

RELATIONAL DATA SERVICES

»Definition and use cases for System Automation‘s RDS feature

Page 2: Pulse2014 1092

02.01.2014 Dietmar Achim Knodel SEITE 2 ∙ RDS RELATIONAL DATA SERVICES

1. What are RDS 2. Setup 3. Basics 4. Use Case #1 – JES2 NJE Links 5. Use Case #2 – DB2 and IMS „dynamic subsystems“ 6. Future thoughts 7. Conclusion

Page 3: Pulse2014 1092

1. What are RDS

SEITE 3 02.01.2014 Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 4: Pulse2014 1092

What are RDS

02.01.2014 ∙ Dietmar Achim Knodel SEITE 4 ∙ RDS RELATIONAL DATA SERVICES

services providing data access

‚lightweight‘ data services system

tables kept in NetView storage during runtime

tables can be archived using a VSAM data set

access provided via two APIs (INGRDS command or ISPF table-

editor command INGRCRDX)

initially developed to serve SA‘s automation emulators

Page 5: Pulse2014 1092

2. Setup

SEITE 5 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 6: Pulse2014 1092

Setup

02.01.2014 ∙ Dietmar Achim Knodel SEITE 6 ∙ RDS RELATIONAL DATA SERVICES

two autotasks (AUTRDSEV and AUTRDSAR) and a VSAM KSDS

(DD INGEMUGL) per system

APL definition (RDSARCH) to achieve automatic archiving

activation requires NetView to be restarted

REXX library required for ISPF table-editor (ING.SINGTREX)

INGPAUTH must be authorized TSO command (define in

IKJTSOnn parmlib member)

Page 7: Pulse2014 1092

Setup

02.01.2014 ∙ Dietmar Achim Knodel SEITE 7 ∙ RDS RELATIONAL DATA SERVICES

ISPF table editor can be RACF-protected RACF FACILITY profile <hlq>.EMULATOR.SQL, UPDATE access required

<hlq> set via advanced automation option AOF_AAO_RDS_TSO_RACFHLQ -

max. 26 bytes, can contain dots, set to #RACFHLQ# to disable RACF checking

RDS working data set required to use ISPF table editor define LRECL as long as maximum estimated sum of column definitions

RACF UPDATE access required for both TSO user and NetView

DSN set via advanced automation option AOF_AAO_RDS_TSO_DSN

Page 8: Pulse2014 1092

3. Basics

SEITE 8 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 9: Pulse2014 1092

Basics

02.01.2014 ∙ Dietmar Achim Knodel SEITE 9 ∙ RDS RELATIONAL DATA SERVICES

INGRDS is NetView‘s API into RDS

comes with different keywords create/drop tables

insert/delete entries of tables

update entries of tables

import/export/copy tables

lock/unlock tables

query tables

list defined tables

Page 10: Pulse2014 1092

Basics

02.01.2014 ∙ Dietmar Achim Knodel SEITE 10 ∙ RDS RELATIONAL DATA SERVICES

SQL-like concept and language no relational data integrity

no primary key support (insert/update/delete!)

no sort functionality (ORDER BY…)

Page 11: Pulse2014 1092

Basics

02.01.2014 ∙ Dietmar Achim Knodel SEITE 11 ∙ RDS RELATIONAL DATA SERVICES

INGRCRDX is interface used from TSO/ISPF main usage to view/edit tables (INGRCRDX EDIT <tablename>)

can be used with other keywords, too

(e.g. INGRCRDX QUERY <tablename> WHERE(NUM=‘1‘) )

view/edit keywords invoke ISPF view-/edit-session

other keywords return line mode data

Page 12: Pulse2014 1092

4. Use Case #1 – JES2 NJE Links

SEITE 12 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 13: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 13 ∙ RDS RELATIONAL DATA SERVICES

NJE links defined as type TCP

dependant from start of JES2‘s NETSRV address-space NETSRV address-space dependant on TCPIP address-space

need line-, port-, IPaddr- and socket-definitions

definitions done in several places of the JES2 init deck

would be a mess to define to automation policy no longer dynamic when done this way

Page 14: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 14 ∙ RDS RELATIONAL DATA SERVICES

two commands defined to maintain dynamic changes NJETBMGR to maintain and manage RDS table

NJEIPMON to monitor NJE links

two general purpose functions RDSTBCHK to check existence of a table

RDSTBDEF to define a table according to parms passed to the function

Page 15: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 15 ∙ RDS RELATIONAL DATA SERVICES

NJETBMGR defined as PRESTART command for NETSRV checks existence of NJETABLE, defines table if not already done

queries active JES2 parameters (nodes, lines, sockets, IPaddrs)

compares active setup with stored values in table

updates table according to queried results (add and delete)

can be called manually after dynamic changes to JES2 parameters have been

applied

Page 16: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 16 ∙ RDS RELATIONAL DATA SERVICES

NJEIPMON defined as link monitoring routine queries NJETABLE for links to be monitored

only acts for systems found to be active (verified via CNMEPING-command)

if link found to be active no further action determined via ‚$DNODE(num),STATUS‘ command (if STATUS contains ‚VIA‘

then connection exists)

if link inactive then $SN,SOCKET=sockname is issued

up to now no special monitoring for success of activation

Page 17: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 17 ∙ RDS RELATIONAL DATA SERVICES

excerpt from NJETABLE queried via INGRDS

Page 18: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 18 ∙ RDS RELATIONAL DATA SERVICES

excerpt from NJETABLE queried via INGRCRDX

Page 19: Pulse2014 1092

JES2 NJE Links

02.01.2014 ∙ Dietmar Achim Knodel SEITE 19 ∙ RDS RELATIONAL DATA SERVICES

NJE link monitoring not already finished

additional features to be implemented special monitoring to control activation of links

notification of other nodes when own node is being shut down

alerting if any mandatory links are missing/inactive

Page 20: Pulse2014 1092

5. Use Case #2 – DB2 and IMS „dynamic subsystems“

SEITE 20 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 21: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 21 ∙ RDS RELATIONAL DATA SERVICES

production data needed for test environment time by time

DB2 and IMS use production subsystems on test LPARs to

anonymize data flashcopy volumes from production varied online to test environment

production IEFSSNxx- and APF-entries must be added

may be available ONLY for duration of anonymization

anonymization almost completely automated

Page 22: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 22 ∙ RDS RELATIONAL DATA SERVICES

process needed to ‚automatically‘ add and delete APF- and SSN-

entries

anonymization process defined to job scheduler

requirement: no interference with job JCL

RDS chosen to store data for APF and SSN DB2 and IMS teams can change entries using INGRCRDX

SA does not need access rights for data sets

Page 23: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 23 ∙ RDS RELATIONAL DATA SERVICES

defined two tables SSNTABLE holds data for SETSSI command

APFTABLE holds data for SETPROG APF command

defined two service routines DYNDB2UT to service DB2 subsystems

DYNIMSUT to service IMS subsystems

Page 24: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 24 ∙ RDS RELATIONAL DATA SERVICES

type of service can be chosen TYPE=APF to handle APF entries

TYPE=SSN to handle IEFSSNxx entries

TYPE=ALL or no specification to handle both (default)

(de)activation can be chosen

IMSPlex/DB2 data sharing group must be specified identification criterion for entries in RDS tables

Page 25: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 25 ∙ RDS RELATIONAL DATA SERVICES

Example for Job JCL

Page 26: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 26 ∙ RDS RELATIONAL DATA SERVICES

General purpose procedure SABATCH

Page 27: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 27 ∙ RDS RELATIONAL DATA SERVICES

Excerpt from APFTABLE

Page 28: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 28 ∙ RDS RELATIONAL DATA SERVICES

Excerpt from SSNTABLE

Page 29: Pulse2014 1092

DB2 and IMS „dynamic subsystems“

02.01.2014 ∙ Dietmar Achim Knodel SEITE 29 ∙ RDS RELATIONAL DATA SERVICES

scheduler jobs include JCL conditionals if any of the routines ends with RC <> 0 no further execution

no command issued if SSI already active

deactivation after job chain has finished

no security issues (APF definitions without existing data sets)

SSIs can‘t be deleted dynamically test systems have to be reIPLed to get rid of SSI definitions

Page 30: Pulse2014 1092

6. Future thoughts

SEITE 30 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 31: Pulse2014 1092

Future thoughts

02.01.2014 ∙ Dietmar Achim Knodel SEITE 31 ∙ RDS RELATIONAL DATA SERVICES

APAR OA43387 for RDS significantly enhances performance of RDS functions

reduces overhead of external function calls by usage of stem-vars

change to stem-usage for all mass-update work

change input data sets to RDS tables where applicable

provide an ISPF application for structured input

Page 32: Pulse2014 1092

6. Conclusion

SEITE 32 02.01.2014 ∙ Dietmar Achim Knodel ∙ RDS RELATIONAL DATA SERVICES

Page 33: Pulse2014 1092

Conclusion

02.01.2014 ∙ Dietmar Achim Knodel SEITE 33 ∙ RDS RELATIONAL DATA SERVICES

externalization of RDS is a major point in SA 3.4

ability to store structured data no fiddling around with Cglobals

data kept when NV goes down (depending on archive intervals and technique)

complex queries within one function call

more storage consumption as tables are kept in NV storage

tables local to system – synchronization left to the user

Page 34: Pulse2014 1092

Vielen Dank.

Finanz Informatik Technologie Service Richard-Reitzner-Allee 8 85540 Haar www.f-i-ts.de

02.01.2014 ∙ Dietmar Achim Knodel SEITE 34 ∙ RDS RELATIONAL DATA SERVICES