23
World ® ’1 6 Modernizing the CA Datacom® Data – SQL Access Part I Kevin Shuma, VP Product Management CA Technologies MFX95SA MAINFRAME AND WORKLOAD AUTOMATION

Modernizing the CA Datacom Data – SQL Access Part I

Embed Size (px)

Citation preview

Page 1: Modernizing the CA Datacom Data – SQL Access Part I

World®’16

ModernizingtheCADatacom®Data– SQLAccessPartIKevinShuma,VPProductManagementCATechnologies

MFX95SA

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Modernizing the CA Datacom Data – SQL Access Part I

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

Page 3: Modernizing the CA Datacom Data – SQL Access Part I

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

ThisisatwopartsessionthatprovidesanoverviewofstepsnecessarytotakemakeCADatacom®availableformodernapplicationsviaSQLandserver.

FormanyshopstheirCADatacom®/DBenvironmentwascreatedbeforetheimplementationofSQL.ThissessionwillwalkthroughthestepsnecessarytomakeallthetheirdataSQLaccessibleusingCADatacom®SQL.FromthereweaddtheODBCandJDBCsupportprovidedbyCADatacom®server.Oncecompletedyouwillhavedatathatisfullyaccessibletomodernapplicationsdevelopmentenvironments.

KevinShuma

CATechnologiesVP,ProductManagement

Page 4: Modernizing the CA Datacom Data – SQL Access Part I

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

WHYSHOULDWEIMPLEMENTSQL?

IMPLEMENTINGSQLACCESS

LEGACYDATASTRUCTURES

SQLCOLUMNREPORT

SUMMARY

1

2

3

4

5

Page 5: Modernizing the CA Datacom Data – SQL Access Part I

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhyshouldweimplementSQL?

§ SQLprovidesthebasicaccesspointformodernapplications– ODBC/JDBCuseSQLunderthecovers

§ ImplementingSQLaccessontraditionaldata– Opensupcriticalbusinessdatatonewapplicationsandbusiness

functions– Doesnotinterferewithexistingtraditionalapplications

§ Peacefulcoexistenceismuchpreferredtorevolutionarychange(rewrites)

§ ImplementingSQLconstraintsontraditionaldata– Allowsbusinessrulestobeenforcedwithoutrequiringadditionalcoding

ModernizationistheKeytoGrowthinToday’sWorld

Page 6: Modernizing the CA Datacom Data – SQL Access Part I

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CADatacom®SQLandCADatacom®Server

CADatacomdataandbusiness

logicWeband

ApplicationServers

Webandmobileapps

ModernizationWithCoexistence

Batch

Traditionalapps

Page 7: Modernizing the CA Datacom Data – SQL Access Part I

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL- AUTHIDs

§ AUTHIDsmustbeaddingtothesystembeforetheycanbeusedintablereferences

§ DefaultAUTHIDsprovidedwithDatacom– SYSADM(systemtables)– SYSUSR(defaultforusertables)

§ WerecommendthattheuserdefinemeaningfulAUTHIDsfortheirenvironment– user_authid (18characteruserspecifiedname)

CreatingtheSystemLevelSchemas- AUTHIDs

Page 8: Modernizing the CA Datacom Data – SQL Access Part I

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL- AUTHIDs(Cont’d)CreatingtheSystemLevelSchemas- AUTHIDs

DBID AUTHID0100 DB01000200 DB02001294 DB1294

• UsinganAUTHIDthattiestobusinessfunctionmaymakeiteasiertogroupthetables

• AllSQLtablenamemustbeuniquewithAUTHID

• WithmultipleDBIDsperAUTHIDbecarefulwhenassigningSQLtablenames

AUTHID BusinessFunction DBID Table

PAYROLL Payroll 0100 All

VENDOR Accounts payable 0200 VND,VNA,VN3

INVENTORY Sales andordering 03000400

INV,ITM,DTLORD,ODL,ITM

• CADatacomalreadyrequires3charactertablenamestobeuniquewithinDBID• InthisexampleweareusingtheDBIDaspartoftheAUTHIDasasimpledefault• MakesitrelativelysimpleforexistinguserstoremembertheAUTHID

Page 9: Modernizing the CA Datacom Data – SQL Access Part I

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL- AUTHIDs(Cont’d)

§ AUTHIDscanbeaddedtothesystemthroughvariousutilities– Theyonlyneedtobedefinedonceperenvironment(MUF)

CreatingtheSystemLevelSchemas- AUTHIDs

Datadictionarybatch Datadictionaryonline SQLstatement

Page 10: Modernizing the CA Datacom Data – SQL Access Part I

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL– DatabaseModelAddingSQLNamestotheDatabaseModelinPRODStatus

DDEntity

Attribute Req. Values Default Status Comment

Schema AUTHID No 18Character No ADDCPYPROD

Mustbedefinedin PRODbeforeusingfortables

Database SQL-Security

No YorN N UPDPROD

Use defaultorsettoN,Useexternalsecurity

SQL-NAME N/A 32Character None UPDPROD

Usedfordocumentationonly

Area SQL-Name No 32Character None UPDPROD

NeededifaddingnewtablesviaDDL(CREATE TABLE…IN…)

Page 11: Modernizing the CA Datacom Data – SQL Access Part I

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL– DatabaseModel(Cont’d)AddingSQLNamestotheDatabaseModelinPRODStatus

DDEntity

Attribute Req.

Values Default Status Comment

Table SQL-Intent Yes N,YorR N UPDPROD

UseYforfullSQLaccessUseRforSQLreadaccessonly

AUTHID Yes ExistingAUTHID

None UPDPROD

Mustbealready defined

SQL-Name YES 32Character None UPDPROD

Mustbedefinedto accesstablewithSQL

Key AUTHID N/A Assigned totablevalue

auto UPDPROD

Automaticallyassigned

SQL-Name NO 32Character None UPDPROD

Mustbedefinedto accessindexwithSQL(ALTERorDROP)

Page 12: Modernizing the CA Datacom Data – SQL Access Part I

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingSQL– DatabaseModel(Cont’d)AddingSQLNamestotheDatabaseModelinPRODStatus

DDEntity

Attribute Req. Values Default Status Comment

Column AUTHID N/A Assigned totablevalue

auto UPDPROD

Automaticallyassigned

SQL-Name NO 32Character Generated UPDPROD

Generatedusingexistingcolumnname

Column AUTHID N/A Assigned totablevalue

auto UPDPROD

Automaticallyassigned

SQL-Name NO 32Character Userspecified

UPDTestCPY PROD

UserwantsspecificSQLname

Userspecifiednameforcolumnrequiresextrasteps

Page 13: Modernizing the CA Datacom Data – SQL Access Part I

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleDDUPDATEJobtoAddSQLAttributes

UpdateSQLattributesinPRODstatus

CatalogPRODtoCXXandDDD

Page 14: Modernizing the CA Datacom Data – SQL Access Part I

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MakingtheSQLAttributes“Live”

§ SQLattributesaresetthroughDatadictionaryprocesses– SQLattributesmadeusableduringtheCXXCATALOG

§ SQLdefinitionsarestoredintheDDD§ Only“active/production”definitionsareinDDD

UpdateTABLECopytoPROD

DDUPDATE

MUF

DD0002

Catalog DDUPDATE

MUF

DD0002

CXX

DDD0015

Page 15: Modernizing the CA Datacom Data – SQL Access Part I

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LegacyDataStructures

§ Legacydatastructuresmayhavesome“SQL”accesslimits– Alltablesareaccessible,butthecontentaccessmaybelimited

§ SQLaccessibilitytolegacytabledefinitions– GroupfieldsareignoredbySQL

§ Onlyelementaryfieldsareviewable– 2nd redefinitioncolumnsarenotaccessible

§ Onlythefirstsetofcolumndefinitionsareviewable;anythingaftertheREDEFINEisignored

– Elementsofrepeatinggroupsarenotdistinguishable§ Repeatinggroup(array)isrepresentedasasinglecharactercolumn

MayHaveBeenBuiltUsingOlderDataStructures(VSAM,COBOLCopybooks)

Page 16: Modernizing the CA Datacom Data – SQL Access Part I

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SQLColumnReport

§ Canbeexecutedagainstanyexistingtable– RegardlessofSQL-INTENTsetting– CanbeusedtopreviewSQLaccessibility

QuickWaytoDetermineHowSQLAccessibleLegacyTableDefinitionsAre

Page 17: Modernizing the CA Datacom Data – SQL Access Part I

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SQLColumnReport(Cont’d)QuickWaytoDetermineHowSQLAccessibleLegacyTableDefinitionsAre

Page 18: Modernizing the CA Datacom Data – SQL Access Part I

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SQLColumnReport(Cont’d)SQLACCESSSTD.- ShowsCurrentSQLAccessibility

STD– indicatesifcolumnisaccessiblebystandardSQL

NO- willincludereasondataisnotaccessible• CMP– columnisacompound

(group)field• RPT– Columnisarepeating

field• RDF– Columisaredefinition

(2nd definition)

Page 19: Modernizing the CA Datacom Data – SQL Access Part I

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExperiencesSQLColumnreportprovidesadetailedreportshowingSQLcolumnaccessibilityforanytable.

KeyTopicsAddingSQLaccessibilitytoexistingtableswillallownewmodernapplicationstobecreatedthatpeacefullycoexistwithexistinglegacyapplications.

FindingsItisasimpleprocesstomakeanexistingtableSQLaccessible.

SummaryPartI

Page 20: Modernizing the CA Datacom Data – SQL Access Part I

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX92S StrategyandVisionforCADatacomandCAIdeal™ 11/16/2016at12:45pm

MFX93S What’snewinCADatacom 11/16/2016at1:45pm

MFX94S ReducingTCOwithDatacomCompression(Presspack) 11/16/2016at3:00pm

MFX95SA ModernizingtheCADatacomdata – SQLAccessPartI 11/16/2016at3:45pm

MFX95SB ModernizingtheCADatacomdata – SQLAccessPartII 11/16/2016at4:30pm

MFX96S CADatacom/ADInstallation/UpgradeandMaintenance 11/17/2016at12:45pm

MFX97S CADatacom/ADReportUtilization,andinformationgatherforSupport 11/17/2016at1:45pm

MFX98SUsingCASYSVIEW®tomonitorandmeasureyourCADatacomenvironment– ADandDB

11/17/2016at3:00pm

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

Page 21: Modernizing the CA Datacom Data – SQL Access Part I

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 22: Modernizing the CA Datacom Data – SQL Access Part I

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Stayconnectedatcommunities.ca.com

Thankyou.

Page 23: Modernizing the CA Datacom Data – SQL Access Part I

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

MainframeandWorkloadAutomation

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