pre-con ed: using sql to access your ca idms databases

67
World ® ’1 6 Using SQL to Access Your CA IDMS Databases David Ross, Sr. Principal Product Owner CA Technologies MFX73E MAINFRAME AND WORKLOAD AUTOMATION

Upload: ca-technologies

Post on 08-Feb-2017

139 views

Category:

Technology


9 download

TRANSCRIPT

Page 1: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

World®’16

UsingSQLtoAccessYourCAIDMSDatabasesDavidRoss,Sr.PrincipalProductOwnerCATechnologies

MFX73E

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

Thissessiondescribeshowtorepresentyourexistingnetwork-definedCAIDMSdatabasesforrelationalmodelaccess.AvailableSQLaccessstrategiesarediscussedindetailsuchastheuseofproceduresandtableproceduresandtheuseofforeignkeys.

DavidRoss

CATechnologiesSr.PrincipalProductOwner,CAIDMS

Page 3: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

LEVERAGINGANDEXTENDINGCAIDMS™

CAIDMSSQL

MAXIMUMSIX(6)WORDSPERBULLET

RELATIONALTONETWORKMAPPINGTECHNIQUES

CAIDMSSERVER

MAXIMUMSIX(6)WORDSPERBULLET

1

2

3

4

5

6

Page 4: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LeveragingandExtendingCAIDMS

Page 5: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

HowDoYouMaximizeBusinessValue?

Largeinvestmentinlegacyapplications••Costlyandriskyconversion••Hardtofindlegacyskills

LeverageandExtend••Leverageinvestment,reducecost••Preserveapplications,reducerisk••Usecurrentdeveloperskills

Page 6: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LeveragingandExtendingCAIDMSWhatWeMean

••Keepyourdatabaseinplace••Accessfromwebservices••Usestandardinterfaces

LeverageCAIDMSdatabases

••Reuseyourapplicationbusinesslogic••Invokewebservices••Providewebservices

ExtendCAIDMS

applications

Page 7: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LeveragingCAIDMSHowYouCanDoIt

UseindustrystandardAPIs

••SQL••ODBC,JDBC••SOAP,REST••HTTP••TCP/IP

Enabledby

••CAIDMSSQL••CAIDMSServer••CAIDMSWebServices••CAIDMSSockets

Page 8: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSModernizationArchitecture

CAIDMSCV

Consumer WebService

IDMSWebServices

PL/1COBOL

AppServer

WebService Consumer ConsumerApps

MobileApps

AppServerProvider

JDBC

IDMSProvider

LeverageExisting

Applications

WebService

IDMSSQL/JDBC

SQLProcedure

ADS

Page 9: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSSQL

Page 10: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSSQLRelationaltoNetworkMapping

••IdenticallynamedTable

••EquivalentRow

••AutomaticallyrenamedColumn

••PartialmappingReferentialconstraint

••ViaSCHEMARecorddefinition

••EquivalentRecordoccurrence

••ExceptODO,redefines,…Element

••LackofforeignkeysSet

SQL Network

Page 11: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSSQLEnablesAccesstoNetworkRecordsInOneEasyStep

CREATE SCHEMA EMPSQLFOR NONSQL SCHEMAAPPLDICT.EMPSCHM V 100;

SQLSchema

Identifies

Networkschema Databaseinstance(optional)

DefinedinSQLcatalog

Page 12: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

NoNeedtoCreateanewDatabase

Everynetworkrecordautomaticallyappearsasatable

OBTAINCALCbecomes

SELECT * FROMEMPSQL.EMPLOYEEWHERE “EMP_ID_0415” = 9771;

Page 13: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

NetworkRecord

Appearsasatable••Namenottranslated••Encloseinquotesifneeded

EMPSQL.”DENTAL-CLAIM”

Page 14: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecordElement

Lowestlevelelementappearsasacolumn••Nametranslated••Hyphenschangedtounderscores••SQLsynonymcanoverridename

TypemappedtoSQLtype

Someelementdefinitionsarenotmapped••Groupitems••Redefines••Occursdepending

Page 15: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ANetworkSetMayAppearasaReferentialConstraint

Referencedtable

Referencingtable

DEPT-EMPLOYEE

DEPT-ID-0410

DEPARTMENT

ORG-DEMO-REGION

410 F 120 CALC

EMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALC

Page 16: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RelationalModelReferentialConstraintsBasedonDataValues

FOREIGN KEYPRIMARYKEY

DepartmentTable EmployeeTable

DEPT_ID DEPT_NAME

1001 SALES

1010 HUMAN RES

1050 ACCOUNTING

1090 PAYROLL

EMP_ID E_LNAME E_FNAME JOB DEPT

12345 CLEMENS SAMUEL J200 1010

21343 MCGEE AGNES J001 1001

31254 GIBSON JOHN J010 1050

43251 SCOTT WESTON J410 1050

Page 17: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

NetworkModelChainedSetsareLinkedLists

Page 18: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ChainedSetPointersNotExplicitDataValues

Page 19: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RelationalToNetworkMappingTechniques

Syntaxextensions

Views

Procedures••Tableprocedures••Calledprocedures

Foreignkeys••Referentialsets••Virtualforeignkeys

Page 20: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SyntaxExtensions

CAIDMSExtensionstoSQL••Noprogramming••Nodatabasechanges

SetNamePredicate••WHERE<setname>••Joincriteriaforsetnavigation••Supportsmostqueries

ROWIDPseudoColumn••BasedonDBKEY,hasthesamepersistence••Notdefinedincatalogordictionary••Especiallyusefulforupdatingrecords

Page 21: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EMPSCHMDatabase

COVERAGE-CLAIMS

EMP-COVERAGE

EMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALC

OCCURS DEPENDING ON

COVERAGE-CLAIMS

DENTAL-CLAIM

INS-DEMO-REGION

405 V 932 VIAEMP-COVERAGE

COVERAGE

INS-DEMO-REGION

400 F 20 VIA

Page 22: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingASetNamePredicate

SELECT EMP_ID_0415,INS_PLAN_CODE_0400,DENTIST-LICENSE-NUMBER-0405FROM EMPSQL.EMPLOYEE,EMPSQL.COVERAGE,EMPSQL.”DENTAL-CLAIM” CWHERE “EMP-COVERAGE”AND “COVERAGE-CLAIMS”.C

Page 23: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingaROWID

UPDATE EMPSQL.COVERAGE CSET SELECTION_YEAR_0400 = 20WHERE C.ROWID IN (SELECT CI.ROWIDFROM EMPSQL.EMPLOYEE E,EMPSQL.COVERAGE CI

WHERE “EMP-COVERAGE”AND EMP_ID_0415 = 23)

Page 24: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Views

Encapsulatesyntaxextensions

Encapsulaterelationships

Overridecolumnnames

Enforcesecurity••Tables••Columns••Rows

Page 25: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingaView

CREATE VIEW EMPSQL.EMPL_DENTIST(EMPLOYEE_ID, PLAN_CODE, DENTIST_NUMBER) ASSELECT EMP_ID_0415,INS_PLAN_CODE_0400,DENTIST-LICENSE-NUMBER-0405FROM EMPSQL.EMPLOYEE,EMPSQL.COVERAGE,EMPSQL.”DENTAL-CLAIM” CWHERE “EMP-COVERAGE” AND “COVERAGE-CLAIMS”.C

SELECT * FROM EMPSQL.EMPL_DENTISTWHERE EMPLOYEE_ID = ‘0555’

Page 26: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TableProcedures

ExternalprogramthatissuesnativeDML

AccessedliketableinSQLDML••SELECT••INSERT••UPDATE••DELETE

Returnsaresultsetlikeatable

Page 27: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TableProcedureUseCases

Encapsulaterelationships

Solvestructuralproblems••Lackofembeddedforeignkeys••OCCURSDEPENDINGON

Requiresprogramming••CangeneratedwithCAIDMSSQLQuickBridge

Nodatabaseorapplicationchanges

Page 28: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EMPSCHMDatabase

COVERAGE-CLAIMS

EMP-COVERAGE

EMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALC

OCCURS DEPENDING ON

COVERAGE-CLAIMS

DENTAL-CLAIM

INS-DEMO-REGION

405 V 932 VIAEMP-COVERAGE

COVERAGE

INS-DEMO-REGION

400 F 20 VIA

Page 29: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DefiningATableProcedure

CREATE TABLE PROCEDUREDENTAL_CLAIM (

EMPLOYEE_ID NUMERIC(4, 0),INS_PLAN CHAR(3),TYPE CHAR(1),DENTIST_LIC NUMERIC(6, 0),PROC_CODE NUMERIC(4, 0),FEE DECIMAL(9,2))

EXTERNAL NAME EMPDCLAM;

Page 30: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingATableProcedure

SELECT PROC_CODE, FEEFROM DENTAL_CLAIMWHERE EMPLOYEE_ID = 0555

AND INS-PLAN = ‘004’AND TYPE = ‘F’AND DENTIST_LIC = 123456;

INSERT INTO DENTAL_CLAIMVALUES (666,‘004’,’F’,654321,5555,585.00);

Page 31: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ForeignKeys

ReferentialSets– userdefined

VirtualForeignKeys– systemdefined

AllowuseofstandardSQL

Enforcereferentialconstraintenforcement

StandardODBCandJDBCmetadata

Compatibilitywithcommontools

Page 32: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EMPSCHMDatabase

DEPT-EMPLOYEE EMP-EXPERTISE

DEPT-ID-0410

DEPARTMENT

ORG-DEMO-REGION

410 F 120 CALCEMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALCEMP-EXPERTISE

EXPERTISE

EMP-DEMO-REGION

400 F 16 VIA

Page 33: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ReferentialSets

Exposesetsasreferentialconstraints••Queries••Updates

Basedonrecordkeyvalues••Primarykey=UNIQUECALCorsystemownedindex••Foreignkey=columnvalueinmemberrecord

Defineonnetworkschemasetdefinition

VisiblethroughJDBCandODBCmetadata

Enableaccessforcommontoolsandapplicationframeworks

UseSQLtoaccessandmaintainnetworkdatabasesfromJava

Page 34: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EMPSCHMwithReferentialSets

DEPT-EMPLOYEE EMP-EXPERTISE

DEPT-ID-0410

DEPARTMENT

ORG-DEMO-REGION

410 F 120 CALC

EMP-ID-0425DEPT-ID-0415

EMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALCEMP-EXPERTISE

EXPERTISE

EMP-DEMO-REGION

425 F 16 VIA

Page 35: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingReferentialSets

§ NonstandardCAIDMSextensionsUPDATE EMPSQL.EXPERTISE

SET EXPERTISE_YEAR_0425 = 20WHERE ROWID IN (

SELECT X.ROWIDFROM EMPSQL.EMPLOYEE E,EMPSQL.EXPERTISE XWHERE “EMP-EXPERTISE”

AND EMP_ID_0415 = 23)

§ BecomestandardSQLUPDATE EMPSQL.EXPERTISE

SET EXPERTISE_YEAR_0425 = 20WHERE EMP_ID_0425 = 23)

Page 36: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingReferentialSets

Defineprimaryandforeignkeysforset

Mayneedtorestructurememberrecord

Populateforeignkeysinmember

Maintainforeignkeysinmember

Alternativetomigration

••Candoincrementally••Lesscost••Lesseffort

Page 37: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

VirtualForeignKeys

Exposesetsasreferentialconstraints••Queries••Updates

BasedonROWID••Virtualprimarykey=ROWID••Virtualforeignkey=FKEY_<set_name>

DefineonSQLschemadefinition

VisiblethroughJDBCandODBCmetadata

Enableaccessforcommontoolsandapplicationframeworks

UseSQLtoaccessandmaintainnetworkdatabasesfromJava

Page 38: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

VirtualForeignKeyBenefits

§ UsestandardSQLtoaccessandupdateCAIDMS– RemovesINSERTandUPDATElimitations– CapabilitieslikenetworkDML– WriteapplicationsusingJava,.NET,andpopularframeworks– NospecialCAIDMSSQLsyntax

§ Easytoimplement– Nodatabasechanges– Nochangestonetworkdefinitions– Noneedfortableprocedures

Page 39: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EnablingVirtualForeignKeys

§ “Create”virtualkeyswithSQLschemadefinitioncreateschemaEMPSQL

fornonsql schemaEMPDICT.EMPSCHMversion100withvirtualkeys

§ ROWIDandvirtualforeignkeysbecomevisible– SELECT*– INSERTcolumnlistwhenlistisomitted– UPDATEcolumnlistwhenlistisomitted

§ “Remove”virtualkeysalterschemaEMPSQLwithoutvirtualkeys

Page 40: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EMPSCHMWithVirtualForeignKeys

DEPT-EMPLOYEE EMP-EXPERTISE

DEPT-ID-0410

DEPARTMENT

ORG-DEMO-REGION

410 F 120 CALC

FKEY_EMP_EXPERTISEFKEY_DEPT_EMPLOYEE

EMP-ID-0415

EMPLOYEE

EMP-DEMO-REGION

415 F 120 CALCEMP-EXPERTISE

EXPERTISE

EMP-DEMO-REGION

425 F 16 VIA

ROWID ROWID ROWID

Page 41: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingVirtualForeignKeys

§ NonstandardCAIDMSextensionsUPDATE EMPSQL.EXPERTISE

SET EXPERTISE_YEAR_0425 = 20WHERE ROWID IN (

SELECT X.ROWIDFROM EMPSQL.EMPLOYEE E,

EMPSQL.EXPERTISE XWHERE “EMP-EXPERTISE”

AND EMP_ID_0415 = 23)

§ BecomestandardSQLUPDATE EMPSQL.EXPERTISE

SET EXPERTISE_YEAR_0425 = 20WHERE FKEY_SET_EMP_EXPERTISE = (

SELECT ROWIDFROM EMPSQL.EMPLOYEEWHERE EMP_ID_0415 = 23)

Page 42: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Page 43: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Page 44: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Page 45: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ComparisonofMappingTechniques

SQLExtensions No No No No Limited

Views Yes No No No Limited

TableProcedures Yes Yes No No Encapsulate

ReferentialSets Yes No Yes Maybe Referentialconstraints

VirtualKeys Yes No No No Referentialconstraints

StandardSQL Newprograms ExposesSetsApplicationchanges

Restructure

Page 46: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSServer

Page 47: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

47 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSServer

§ CAIDMSasaServer

§ ODBCdriver

§ JDBCdriver

§ DynamicSQL

Page 48: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ODBCOpenDataBaseConnectivity

CallLevelInterface

Interoperability

MicrosoftWindows

ODBC.NET

Page 49: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ODBCArchitectureWindows

ODBC ApplicationProgram Interface

ODBC ServiceProvider Interface

Network and DBMS

ODBCApplication

ODBC DriverManager

ODBCDriver

DataSource

ODBCDriver

DataSource

Page 50: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSODBCDriver

§ ODBC3.5

§ Wireprotocolcommunications

§ 32and64-bitdrivers

Page 51: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

JDBC“JavaDataBaseConnectivity”

CallLevelInterface

Objectoriented

Interoperability

AnyJavaplatform

Page 52: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

JDBCArchitecture

JavaVM

Java Application

DriverManager

DriverInterface

Networkand DBMS

Driver

URL

Driver

URL

Page 53: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

53 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSServerArchitectureODBCandJDBC

SQLClientInterface

ODBCDriver JDBCDriver

SQLEngine

NetworkDBMS

Page 54: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

54 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

JDBCDriverTypes

DBMS

ODBC

JDBC

Type 1

JDBC

Native

DBMS

Type 2

DBMS

JDBC

Type 4

Middleware

DBMS

JDBC

Type 3

Page 55: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

55 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSJDBCDriver

§ JDBC4.0

§ “Universal”driver– Types2,3,4

§ 64-bitType2Driver

§ Type4JDBCDriver– DirectconnectionfromJDBCdrivertoCV

§ DistributedXAtransactions

Page 56: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

56 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Page 57: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

57 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Type4JDBCDriver

CVJava

TCP/IP

JDBCDriver

NativeClient

JDBCServer

Page 58: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

58 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Type4Server

TCPIPLineDriver

JSRVServerTask

SQLClient

SQLEngine

GenericListener

Page 59: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

59 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SYSGENServerDefinition

ADD PTERM TCPJSRVTYPE IS LISTENERPORT IS 3799TASK IS RHDCNP3JMODE IS SYSTEMPARM IS 'TASK=IDMSJSRV'.

ADD LTERM TCLJSRVPTERM IS TCPJSRV.

Page 60: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

60 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

XAResourceManager

TCPIPLineDriver

JSRVServerTask

SQLClient XAClient

SQLEngine TransactionManager

GenericListener

Page 61: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

61 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSServerCAIDMSServerenablesWindowsandJavadeveloperstouseSQLaccessandupdateCAIDMSdatabasesandapplications.

CAIDMSCAIDMSSQLandCAIDMSServerhelpusersleverageandextendtheirinvestmentinCAIDMSapplicationsanddata.

CAIDMSSQLCAIDMSSQLenablesdeveloperstouseSQLtoaccessandupdatenetworkdatabasesaswellastocreatenewSQLdefineddatabases.

Summary

Page 62: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.62 @CAWORLD#CAWORLD

MainframeandWorkloadAutomation

FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI

Page 63: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

63 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX100S StrategyandVisionforCAIDMS 11/16/2016at12:45pm

MFX101S LegacyisnotaDirtyWord 11/16/2016at1:45pm

MFX102S CAIDMS19.0WebServicesforModernization 11/16/2016at3:00pm

MFX103S CAIDMS19.0SQLEnhancementsforModernization 11/16/2016at3:30pm

MFX104S JavaAccesstoCA-IDMSDataatBT(BritishTelecom) 11/16/2016at4:45pm

MFX105SImplementationandUseofGenericVTAMResourceswithParallelSYSPLEXFeatures(CA andCAXIA) 11/17/2016at12:45pm

MFX106S CAIDMSBufferTuning 11/17/2016at1:45pm

MFX107S M3AServicesMonitor,Measure,ManageandAlert 11/17/2016at3:00pm

MFX108S BirdsofaFeather/StumptheTechie! 11/17/2016at3:45pm

Page 64: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

64 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

DemoNameProductXTheater#location

DemoNameServicesYTheater#location

DemoNameSolutionYTheater#location

DemoNameProductXTheater#location

Page 65: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

65 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 66: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

66 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

Page 67: Pre-Con Ed: Using SQL to Access Your CA IDMS Databases

67 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation