modernizing the ca datacom data – sql access part i
TRANSCRIPT
![Page 1: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/1.jpg)
World®’16
ModernizingtheCADatacom®Data– SQLAccessPartIKevinShuma,VPProductManagementCATechnologies
MFX95SA
MAINFRAMEANDWORKLOADAUTOMATION
![Page 2: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/2.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/3.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/5.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/7.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/8.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/9.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/10.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/11.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/12.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/13.jpg)
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleDDUPDATEJobtoAddSQLAttributes
UpdateSQLattributesinPRODstatus
CatalogPRODtoCXXandDDD
![Page 14: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/14.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/15.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/16.jpg)
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SQLColumnReport
§ Canbeexecutedagainstanyexistingtable– RegardlessofSQL-INTENTsetting– CanbeusedtopreviewSQLaccessibility
QuickWaytoDetermineHowSQLAccessibleLegacyTableDefinitionsAre
![Page 17: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/17.jpg)
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SQLColumnReport(Cont’d)QuickWaytoDetermineHowSQLAccessibleLegacyTableDefinitionsAre
![Page 18: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/18.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/19.jpg)
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ExperiencesSQLColumnreportprovidesadetailedreportshowingSQLcolumnaccessibilityforanytable.
KeyTopicsAddingSQLaccessibilitytoexistingtableswillallownewmodernapplicationstobecreatedthatpeacefullycoexistwithexistinglegacyapplications.
FindingsItisasimpleprocesstomakeanexistingtableSQLaccessible.
SummaryPartI
![Page 20: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/20.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/21.jpg)
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
![Page 22: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/22.jpg)
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Stayconnectedatcommunities.ca.com
Thankyou.
![Page 23: Modernizing the CA Datacom Data – SQL Access Part I](https://reader031.vdocuments.net/reader031/viewer/2022020314/58739fb31a28ab85438b7473/html5/thumbnails/23.jpg)
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.23 @CAWORLD#CAWORLD
MainframeandWorkloadAutomation
FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI