Upload
ca-technologies
View
200
Download
3
Embed Size (px)
Citation preview
World®’16
IntroductiontoCADatacomKeyConceptsandFacilities– PartIDaleRussellDirectorSoftwareEngineeringandProductOwnerCATechnologies
MFX68EA
MAINFRAMEANDWORKLOADAUTOMATION
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
Thisisamulti-partsessiontargetedtowardsthenewCADatacomDBAorsystemsprogrammer.ThesessioncoversthekeyconceptsandfacilitiesforimplementingandmanagingtheCADatacomenvironment.
DaleRussell
DirectorSoftwareEngineeringandProductOwner
CATechnologies
3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Module1:Introduction
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductiontoCADatacomKeyConceptsandFacilities
§ CADatacom/DBDatabaseAdministration– 7hoursplanned,2sessions,12modules
§ Audience– DatabaseAdministratorsandthoseresponsibleforsupportingCA
Datacom/DB
§ Prerequisites– Knowledgeofz/OSJCL,macroassemblies,basicoperatingsystem
concepts– FamiliaritywiththeDBAjobfunctionorsomeexperienceasaDBA
Introduction
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductoryDBAEducation
§ Duringthemorningsession,youwill:– LearnkeyCADatacom/DBdatabaseconcepts– LearnwhataMulti-UserFacility(MUF)is– LearntheroleoftheDatadictionary
§ Duringtheafternoonsession,youwill:– LearntheprimaryDBUTLTYfunctions– Learnwhatroutineoperationsshouldbeperformed– Learnhowloggingandrecoverywork– LearnhowtoreportaproblemtoCASupport
Modules
6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductoryDBAEducation
§ Duringtheafternoon(contd.):– LearnhowbatchandonlineprogramsaccessMUF– LearnwhataMUFplexis– LearnwhatCADatacomCICSServicesdoes– LearnhowtomonitorandmanageonlineURTs
Modules- continued
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductoryDBAEducation
§ CASupportOnline(CSO)loginpage:– https://support.ca.com
§ CADatacomVersion15.0Documentation:– https://docops.ca.com/ca-datacom/15-0/en
§ CADatacomUserCommunitypage:– https://communities.ca.com/community/ca-datacom-cadre
ImportantDatacomLinks
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Module2:CADatacom/DBKeyDatabaseConcepts
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ModuleObjectives
DEFINERELATIONALDATABASECONCEPTS
NAMETHECOMPONENTSOFCADATACOM/DB
EXPLAINTHESTRUCTUREOFADATABASE
1
2
3
10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RelationalDatabaseConcepts
§ Databasesconsistsoftables
§ Tablesconsistofrows
§ Rowscontaincolumns
§ Rowsofonetablecanberelatedtorowsinanothertable
§ Rulesexistforcontrollingtherelatingofrows
11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RelationalDatabaseConceptscontinued
Emp. No. Emp. Name Emp. State125 Able Texas126 Baker Oklahoma127 Charlie Indiana
Pay Date Emp. No. Pay Amount 12/15/03 125 187.75 12/31/03 125 127.50 12/15/03 127 15.01
—x
§ Indexesarecreatedtoincreaseperformance
§ Rowsarerelatedbycolumnvalues
TablesrelatedbyEMPLOYEE_NO
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RelationalDatabaseConcepts
§ Viewsoftable(s)canbecreated– Segregateslogicalviewofdatafromphysicaldata– Insulatesapplicationsfromphysicaldatachanges– Dataappearsonlyonce– Standardsandintegritiescanbeenforced
continued
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RelationalDatabaseConceptscontinued
14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
TheCADatacomProductFamily– CoreProducts
§ CADatacom/DB§ CADatacomDatadictionary§ CADataquery forCADatacom§ CADatacomSQL§ CADatacomCICSServices§ CADatacomPresspack§ CADatacomFastRestore
15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
TheCADatacomProductFamily– AdditionalProducts
§ CADatacomServer§ CAIdealforCADatacom§ CAIPC(Inter-ProductComponents)§ CADatacomVSAMTransparency§ CADatacomDL1Transparency§ CADatacomTOTALTransparency§ CADatacomResourceAnalyzer
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
OtherRelatedCAProducts
§ CACommonServices(CCS)§ CASYSVIEW
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemArchitecture
CXX
PXX
LXX
RXXDirectory
StatisticsandDiagnosticsArea RecoveryArea
LogAreaFXX
ForcedLogArea
Index Area
IXXIXX IXX
DataAreas DATA-DICTandotherSystemAreas
DataAreas
18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Directory
§ Containsstructuralandstatusinformationoneverydatabaseintheenvironment
§ OneperDMBSenvironment
CXX
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
LogArea
§ Temporaryholderoflogrecords§ Basicallymaintenancetransactionbeforeandafterimages§ Providestransactionbackout andMUFrestartcapabilities
LXX
20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ForcedLogArea
§ Containslogging-relatedinformationthathasbeenforcedfromtheLogArea(LXX)
§ DoesnotneedtobeaslargeastheLXXbutmusthavethesameBLKSIZE
§ UsedbyMUFtofacilitaterestartprocessing
FXX
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RecoveryArea
§ Permanentholderofcommittedlogrecords§ UsedwithLogArea(s)toprovideforwardandbackward
recoverycapabilities
RXX
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
StatisticsandDiagnosticsArea
§ ContainssystemstatisticsandmasterlistdumpsifMUFSYSOUTstartupoptionnotpresent
§ Providesinformationformonitoringandtuning
CADatacom/DB
PXX
23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IndexArea
§ Providesfastaccesstodatacontainedwithinadatabase§ Compoundrelationalindexstructure§ OnelogicalIXXperdatabase§ Canbesplitinto
multiplephysicalInndatasets
IXX
24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CompoundRelationalIndex
§ BalancedB-treestructure§ High-levelcontainskeyrangesandprovidesaccessibilityto
low-levelindex§ Low-levelcontainskeyvaluesanddatarecordaddresses§ Self-reorganizing
25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DataandIndexArea
§ Eachresidesinitsownphysicaldataset
§ Nologicalsizerestriction
§ Inz/OScanoccupyupto59dasd volumes
§ Upto240dataareasperdatabase
AREA
26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ReservedDatabaseIDs
§ Thefollowingarecurrentlyinuse– 000 Non-CADatacom/DBresources– 001 HumanResourceSampleTables– 002 DatadictionaryDatabase– 003 CADataquery SystemTables– 004,005 AccountingFacility– 006 CompoundBooleanSelectionFacility– 010 OrderEntrySampleSystem– 012-013 CADatacomResourceAnalyzer
Thefirst20databaseIDsineach1000increment
27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ReservedDatabaseIDs
§ Thefollowingarecurrentlyinuse– 014 CADatacomTransparencies– 015 DDD-DATABASE– 016 SQLDefaultDatabase– 017 SQLTTM(TemporaryTableManager)– 018 CAIdealSampleDatabase– 1000 CADatacom/DBSystemTables– 1001 SQLDemonstrationDatabase– 1006 CBSHeuristicsDatabase– 1007 HistoryDatabase
continued
28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ReservedDatabaseIDs
§ Thefollowingarecurrentlyinuse– 1008-1017 Reserved– 1018 AUTOSTAT– 1019-1020 AUTOSCOPE– 2000-2008 Reserved– 2009 CA_CDC_BASE(ChangeDataCapture)– 2010-2020 Reserved– 3000-3020 Reserved– 4000-4020 Reserved– 5000 Reserved
continued
29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents
30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents
§ EachdatabasemustfirstbedefinedtoCADatadictionary(DBID002)§ AllcomponentshaveanexternalDatadictionaryname§ ExternalDatadictionarynamesarefrom1to32characterslong§ Inaddition,areas,tables,keysandelementshaveaninternalnameused
byDatacom/DB§ InternalDatacomareaandtablenamesmustbe3characterslong§ Internalkeyandelementnamescanbefrom1to5characterslong§ Nologicalcolumnorelementlimit(butmaximumrowsizeis32720)
continued
31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Database
§ Groupoflogicallyrelatedtables§ 5000databasesperDBMSenvironment§ 240tablesperdatabase(1,200,000tables)
32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Area(s)
§ Physicalstorageofdatatables§ Transparenttotheuser§ Physicallycontainoneormoretables§ Upto240areas
perdatabase
33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Table(s)
34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Element
§ Unitofdatatransfer§ 1- to5-byteDATACOM-NAME§ Composedofcontiguouscolumnswithinarow§ Upto255Elementspertable
35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Key
§ Oneormorecolumns,contiguous/non-contiguous,anyorder,ascending/descending(max180bytes)
§ Orderedbasedonbinaryvalue(default)oractualnumericcollatingsequence
§ Optimizesdataaccess,canbesharedacrosstables§ 1- to5-characterDATACOM-NAME
36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– MasterKey
§ Ensuresdataintegrity§ Canbeuniqueandnon-updatable§ SingleMasterKeyrequiredforeachtable
37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– NativeKey
§ Shouldreflectphysicalorderofdatamostoftenusedbysequentialprocesses
§ SingleNativeKeyrequiredforeachtable§ CanbethesameastheMasterKey§ CanbeusedtoreorganizedataviaDBUTLTYBackup
38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– UniqueKey
§ CanbetheNativeand/orMasterKey§ Anynumberofkeysmaybeunique
39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Non-UniqueKey
§ CanbetheNativeKey§ Duplicatekeyvaluesareallowed
40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– DirectAccessKey
§ CannotbetheMasterorNativeKey§ Mustbeanumeric4-bytebinaryunsignedcolumn§ MusthaveUNIQUEattributedefined§ Tablemustbeuncompressed,singletablearea,DSOP=0§ Onlysupportedforretrievalbyread-by-key-exactcommands§ Norealindexexists,specialconditionsforADD,UPD,DEL
41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureComponents– Dataviews
§ Logicalviewofdata§ Composedofoneormoreelements§ UsedbyCAIdeal
42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ModuleSummary
§ Youshouldnowbeableto—Definerelationaldatabaseconcepts—NamethecomponentsofCADatacom/DB—Explainthestructureofadatabase
43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Module3:TheMulti-UserFacility(MUF)
44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Agenda
STATETHEPURPOSEOFTHEMULTI-USERFACILITY
LEARNMULTI-USERSTARTUPOPTIONS
ISSUEMULTI-USERCONSOLECOMMANDS
INTERPRETMULTI-USERMESSAGES
1
2
3
4
45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Multi-UserFacility(MUF)
§ Centralizeddatabasemanagementandcontrol
§ Sharedresources
§ Multiple(thousands)ofsimultaneousread/updateusers
46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Multi-UserFacility(MUF)
§ Allowsmanyuserstobeservicedconcurrently
continued
47 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PCCallUsage
§ ProgramCall(PC)methodologyreplacedpriorversions’useofSupervisorCall(SVC)
§ PCmodulesinstalledusingCACommonServicesCAIRIMprogram
§ DBSYSIDmacro‘TARGET_MUF_LIST=‘parameteridentifiesMUF
§ Valueusedonstartupoption‘MUF’mustbeanasterisk‘*’ormatchthe‘TARGET_MUF_LIST=‘value
48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ProgramtoMUFConnectivity
§ DBSYSIDmacroassembledandlinkeditedtocreatemoduleDBSIDPR
§ DBSIDPRloadedbyMUFatstartup
§ DBSIDPRloadedbyapplicationsatUserRequirementTable(URT)open
§ IdentifiesaspecificMUFwithinaprocessingimageusingTARGET_MUF_LISTvalue
§ SupportforCrossCouplingFacility(XCF)access
§ SupportforCommonCommunicationInterface(CCI)accessusingTCPIP– z/OSMUFplex,z/OSSysplex
49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PCCallAccessWithinSingleImage
50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Syxplex Communication
§ ViaXCF
51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Non-Syxplex Communication
§ ViaCCI
52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowMUFplex (ModeS)
53 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DataSharingMUFplex (ModeAorB)
54 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DBSYSIDMacro– ModeA,BorS
TITLE'DATACOM/DB- DBSIDPRFORINDIVIDUALLOGICALMUF'
DBSYSID X
CONSOLE_MINUTES=2,EVERY2MINUTES,PLUSONDEMAND X
DELAY68=2, X
DELAY85=1, X
DELAY_DBUTLTY_SECURITY=NO,EXTERNALSECUREYES/NO X
SIMPLIFY_MODE=NO,YES/NO X
TARGET_MUF_LIST=(mufa,mufb), X
CONNECT_ALLOW_PRIORITY=(LOCAL,XCF,CCI) X
TOGROUP=(groupname)
END
55 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterListOptions
§ StillloadedbyMUF
§ OnlyparameterthataffectsMUF– SMFRTY128-255(z/OSonly)
§ StillusedbyDBUTLTY
DBMSTLSTmacro
56 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
– Users– Products– Buffers– MRDF– CPUs– Sysplex/MUFplex– Logging/Recovery– SQL
Groupings
—ProgramSupport
—Security—Console
—Statistics
—Performance
—Diagnostics—Restart
—ChangeDataCapture
57 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ TASKS#tasks,size,0,0,xcftasks– TASKS250,32K,0,0,250– TASKS6999,64K,0,0,200
Users
58 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ DATACOMentry1,entry2,…– DATACOMDB,SQL,DQ,PRESSPACKor– DATACOMDB– DATACOMSQL– DATACOMDQ– DATACOMPRESSPACK
§ DICTIONARYdatadict-dbid,ddd-dbid– DATADICTIONARY 2,15
Products
59 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ SYSPOOLcxxno,ixxno,dxxno,ixxbfrsize,64-bit– SYSPOOL20,1000,3000,,64
§ DATAPOOLdataln,datano,data2ln,data2no– DATAPOOL8K,500,28K,12
§ FLEXPOOLixxno,dxxno,datano,data2no– FLEXPOOL10,100,100,100
§ CBSdbid,buffer,maxsten,maxstio,maxage,heuristic-dbid– CBS6,256K,0,0,16,1006
Buffers
60 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ DATASPACEnnnnM– DATASPACE2048M
§ VIRTUALarea,size– VIRTUALIXX006,50M– VIRTUALIXX017,256K– VIRTUALTTM017,2G
MemoryResidentDataFacility(MRDF)
61 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ COVEREDarea,size,active/first,begin-blk– COVEREDPAY00001,50%– COVEREDA0100781,110%– COVERED781,110%– COVERED36,90K,FIRST
MemoryResidentDataFacility(MRDF)- continued
62 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ SMPTASKmaximum,current,ready,zIIP– SMPTASK4,2,4,SRB
§ IOTASKmaximum,current (default0)– IOTASK4,4
CPUs
63 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ XCF_FROMsysname,jobname,grpname,swt– XCF_FROM*,*,PRODGRP,YES– XCF_FROM*,T*,TESTGRP,DELETE
§ MUFmufname,rununits,endmessage– MUF*,99,NO– MUFPRODMUF,99,NO
§ MUFPLEXname,number,locks,maxtasks,mode,tracesize– MUFPLEXADSHADOW,*,,499,S– MUFPLEXPRODPLEX,*,,800,A
SYSPLEX&MUFplex
64 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ LOGOPTIONyes/no– LOGOPTIONNO(thedefault)
§ LOGPENDnumber– LOGPEND500
§ LOGPOOLnumber– LOGPOOL30
§ LOGRCVnever/no/yes,dualrxx– LOGRCVNO
LoggingandRecovery
65 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ LOGSPILLa,b,c,d,e– LOGSPILL35,85,25,30,20
§ RSScontinue/fail– RSSCONTINUE(requiresRXXROLLBACKYES)
§ RXXROLLBACKyes/no– RXXROLLBACKYES
LoggingandRecovery
66 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ DATETIMEdate,time– DATETIMEISO,ISO
§ SQLOPTIONyes/no,ttmid,mode,timeout,view-security,both– SQLOPTIONYES,017,DATACOM,120,NO– SQLOPTIONYES,*,DATACOM,120,NO
§ SQLDEFAULTdbid,name– SQLDEFAULT016,CASQLDEFAULT
§ SQLOPTION_TTMIDdbid1,dbid2,…,dbid7(requiresMUFplex)– SQLOPTION_TTMID0017,1117
SQL
67 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ ACCESStype,dbid1,dbid2,…Types:OPTIMIZE;NOOPT;MAINT;NOMAINT;OFF;OPEN;READ;UTLTY;WRITE– ACCESSWRITE,1-5000– ACCESSNOOPT,21-999– ACCESSOPEN,1200,1558– SystemDBIDsrequireOPTIMIZE,thedefault
§ EXCTLNO2-9999– EXCTLNO2K(0=nolimit)
ProgramSupport
68 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ READAHDindex/physical(onlyappliestoprogramswithpre-8.1URTs)– READAHDINDEX
§ MAXELRQ3-255(use255ifSQLstartupoptionsinuse)– MAXELRQ255
ProgramSupport
69 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ ECHOon/yesoroff/no– ECHOOFF
§ MUFMSGjobname,svc#,mufname– MUFMSGYES,YES,YES– MUFMSGYES,NO,NO
§ MESSAGEtype,messageid– MESSAGEYES,DB00135– MESSAGEYES,DB00136
Console
70 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ ACCTtable-no,buffer,status,threshold– ACCT0,8K,CLOSED,5000– ACCT1,24K,OPEN,0
§ ACCTPRMprm-dbid,acct-dbid,cpu-time– ACCTPRM004,005,NO
§ SYSTEMDBIDdbid,maintenance– SYSTEMDBID1000
§ PXXSTATSDETAIL/EOJ/EOJPRT/NONE– PXXSTATSEOJPRT
Statistics
71 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ SYSOUT- class,mlparm,cbsparm,sqlparm,ddparm,dstparm– SYSOUT0,5M,1M,3M,1M,1M
§ MasterListsnaps(mlparm)§ CBStraces(cbsparm)§ SQLtraces(sqlparm)§ CADatacomDatadictionarytraces(ddparm)§ DSTtraces(dstparm)
Statistics(continued)
72 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ BREAK2-500– BREAK100
§ NONSWAPno/yes– NONSWAPYES
Performance
73 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ RCERRORmldump,mlbufdump,rc(s)– RCERRORYES,YES,08008– RCERRORYES,NO,10039– RCERRORNO,NO,10039
Diagnostics
74 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ NORESTARTall/dbid– NORESTARTALL– NORESTART101
§ DORESTARTall/dbid– DORESTARTALL– DORESTART151,182– DORESTART21-99
Restart
75 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ CDCyes/no,size– CDCYES,8M(default0)
§ CDC_BASEyes/no,dbid– CDC_BASEYES,101– CDC_BASEYES,101-568
§ CDC_TABLEyes/no,tablename-dbid– CDC_TABLEYES,PAY001
ChangeDataCapture(CDC)
76 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ CDCLnameA– CDCLPRODMUFA
§ CDCL_DBIDname,dbid– CDCL_DBIDPRODMUF,2009
§ CDCL_DSname,x,dsn– CDCL_DSPRODMUF,P1,*
§ CDCL_OPENname– CDCL_OPENPRODMUF
CDC(continued)
77 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ CDCL_POLLname,n (1—28800)– CDCL_POLLPRODMUF,60
§ CDCL_RESETname– CDCL_DBIDPRODMUF
§ CDCL_CLOSE– CDCL_CLOSE
§ CDCL_CNTTByes/no– CDCL_CNTTBYES
CDC(continued)
78 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ CDCM_DBIDname,DBID– CDCM_DBIDPRODMUF,2021
§ CDCM_IDa– CDCM_IDA
§ CDCM_OPEN– CDCM_OPEN
§ CDCM_POLLn(1—28800)– CDCM_POLL60
CDC(continued)
79 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFStartupOptions
§ CDCM_SIDNAMEname– CDCM_SIDNAMEDBSIDPX
§ CDCM_WARNn(1—28800)– CDCM_WARN120
CDC(continued)
80 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFInitiation
§ LoadsMUFinitializationmodulesincludingDBMSTLST
§ EditsSYSINstartupoptions
§ LoadsadditionalMUFmodules
§ Performsrestartactivitiesifneeded
§ Producesstartupmessages
DBMUFPR
81 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFConsoleCommands
§ ACCESSstatus,dbid– /fPRODMUF,ACCESSOFF,781– DB01335I- CONSOLESCHEDULED- ACCESSOFF,781– DB00607I- BASE781ACCESSOFF(BASEISCLOSED)– DB00608I- CONSOLECOMPLETE- ACCESSOFF,781
§ ACCT_ADDtblname,buffer,threshhold– /fPRODMUF,ACCT_ADD11,8K,0– DB01311I- ACCT_ADD11,8K,0– DB01335I- CONSOLESCHEDULED- ACCT_ADD11,8K,0– DB00608I- CONSOLECOMPLETE- ACCT_ADD11,8K,0
82 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFConsoleCommands
– REQABORT– EOJ– EOJFREE(stillsupported,processedasEOJ)– EOJKEEP(stillsupported,processedasEOJ)– EOJOFF– CLRPXX– NEWRXX– SNAP
Continued
83 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFConsoleCommands
– FLEXPOOL– SECURITY– SMPTASKm,c,r– SMPTASKR r– IOTASK i
Continued
84 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
NEWCOPY
§ Avalidstoredprocedurenameoroneofthefollowingmodulenames:– DBACMPR,DBACRPR,DBAFNPR,DBBFMPR,DBBFWPR,
DBCAPPR,DBCFMPR,DBCL1PR,DBCMPPR,DBCOMPR,DBDSMPR,DBDSTPR,DBDS2PR,DBDS3PR,DBDVCPR,DBEIPPR,DBIDFPRDBIDSPR,DBIDXPR,DBID3PR,DBIOCPR,DBIOMPR,DBLOGPR,DBMEMPR,DBMPLPR,DBMP2PR,DBMSMPR,DBOP1PR,DBREDPR,DBREXPR,DBR0PPR,DBRPFPR,DBRPSPR,DBRPTPR,DBRQPPR,DBSMNPR,DBSPLPR,DBSQMPR,DBSRPPR,DBSVLPR,DBTXBPR,DBUPDPR,DBUPXPR,DBUTMPR,DBXCFPR,DBXESPR,DBXNFPR
85 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
NEWCOPY
§ UsingNEWCOPYforDBmodulesisstronglydiscouraged
§ UseaShadowMUFtoperformDBmodulemaintenance
Continued
86 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
NEWCOPYMessages
§ DB01314ENEWCOPYERRORn,wherenrepresentsanerror::1. Moduleisnotinalistofcandidatemodules.2. ModuleisnoteligibleforNEWCOPY.3. Loadfailedforanewcopy.4. UnabletodoNEWCOPYoftheprocedurebecausetheMulti-UserFacilityisnotauthorized.5. Moduleisnotcurrentlyinmemory.6. Currentmodulecannotberenamedinoperatingsystemcontrolblocks.
§ DB01326INEWCOPYCOMPLETEindicatesthatnoerroroccurred
87 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFMessages
§ Latestmaintenancelevels– DB00248I- PARMPGMDT=20090430,DBBFWPR2012/10/19-161112RO49660– DB00248I- PARMPGMDT=20090430,DBCAPPR2012/07/30-111012RO48627– DB00248I- PARMPGMDT=20090430,DBCFMPR2011/12/08-153612RO35829– DB00248I- PARMPGMDT=20090430,DBCL1PR2012/06/20-155412RO47368
§ DBSIDPRparameters– DB00249I- DBSIDPR2012/03/2110.13SVC=000TOGROUP=DBAJGRP
§ Startupoptionsechoedback– DB01900I- ACCESSWRITE,1-5000– DB01900I- ACCESSNOOPT,1– DB01900I- ACCT0,8K,CLOSED,0
88 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFShutdown
§ BatchDBUTLTYCOMMOPTION=EOJ
§ ConsoleEOJcommand‘/fjobname/stcname,EOJ’
§ ConsoleSTOPcommand‘/fjobname/stcname,STOP’(treatedsameasEOJ)
89 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MUFShutdown– Normal
§ Closedatabases
§ UpdatesPXX
§ EndsLOG(LXX)
§ UpdatesCXX
§ ProducesSYSPRINToutput
§ Closesalldatasets
90 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ModuleSummary
§ StatethepurposeoftheMulti-UserFacility
§ NamesomeMulti-UserStartupoptions
§ IssueMulti-Userconsolecommands
§ InterpretMulti-Usermessages
91 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Module4:Datadictionary
92 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Agenda
IDENTIFYTHECOMPONENTSOFADATABASE
NAMETHEMETHODSFORDEFININGADATABASE
CREATEASIMPLEDATABASEANDITSCOMPONENTS
CATALOGADATABASE
1
2
3
4
93 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CADatacomDatadictionary
§ Repositoryforall CADatacom/DBdatabaseinformation
§ Storesrelatedinformation– CAIdealforCADatacom
§ Canbeusedtostoreuserinformation– Additionalentities– Additionalrelationships
94 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CADatacomDatadictionary
§ Wheredoesitreside?– DBID002
§ 32tablesinasinglearea(DD1)Version14.0§ 33tablesinasinglearea(DD1)Version15.0
– VLSfiles§ DDOFILE§ DDOFIL2§ MDUOLL(DDMAP)§ ADRPNL
Continued
95 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CADatacomDatadictionary
§ RelationshiptotheCXX– DatadictionarypopulatestheCXX– DatabaseCATALOGcommand(DDUPDATE,online)– SQLDMLalsoupdatesCXX
§ CREATETABLE,ALTERTABLE§ Issuestable-levelCATALOGunderthecovers
Continued
96 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CADatacom/DBModel
§ Namingconventions
§ Definingthemodel
§ Statusandversion
§ Relationships
§ CATALOGtotheCXX(andDDD)
§ BuildingSQLPlans
97 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatadictionaryNamingConventions
§ Datacomname(DATACOM-NAME)– 3alphanumericcharacters– dataandindexareas– Upto5alphanumericcharacters– keys,elements
§ DatacomID(DATACOM-ID)– 3digits
§ Datadictionaryoccurrencename(ENTITY-NAME)– 1-32alphanumericcharacters
§ SQLname(SQLNAME)– 1-32alphanumericcharacters
98 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DefiningtheModel
§ Database
§ Area
§ Table– Fields(columns)– Keys(indexes)– Elements
§ Dataviews
99 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
StatusandVersion
§ Status/Version– TEST (includesalltestversions)– T001-T999 (individualtestversions)– PROD (whateverversioniscurrentlyinPRODuction status)– HIST (includesallversionsinHISTory status)– H000-H997 (historygenerationnumber)– 001-999 (absoluteversionnumber)
100 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Relationships
§ $INTERNAL(StandardDBModelpath)– Database-Area– Area-Table– Table-Field (emulated)– Table-Key– Key-Field (emulated)– Table-Element– Element-Field (emulated)– Dataview-Element– Dataview-Key
101 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Relationships
§ RelationshipsforpathsincludingCAIdealentities– Program-Panel PGM-PNL-USE– Program-Dataview PGM-DVW-USE– Program-Report PGM-RPT-PRODUCE– Program-Program PGM-PGM-CALL– Etc.
§ User-definedrelationships
Continued
102 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Synchronization
§ Backups– BestpracticetobackupDATA-DICT,DDD-DATABASEandCXXatthe
sametime– Recommendbackupsbefore/aftermakingamajorstructurechange– ConsideralwaysusingLOGRCV=NO(doingSPILLs),evenintestMUFs,
forDD/DDD.DangerofincompleteTransactionBackout
§ Restores– CoordinatewithDDDandCXX
§ Recovery– Cannotrecoveracrossastructurechange
103 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseDefinitionUsingDDUPDATE
§ SeeCADatacomDatadictionary BatchReferenceGuide
§ 80-columnstatements,transactionsfrompastversionssupported
§ Canadd/defineallorpartofadatabasestructure
§ Canupdate,delete,copy,transfer,restore– Individualentityoccurrencedefinitions– Structuresorsub-structures(i.e.table,columns,keys,elements)
§ Canupdateexistingentityoccurrenceattributevalues
104 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UserDatabaseDefinition
§ Batch,usingDDUPDATE
§ GeneratetransactionsusingDDBTGLM,thenDDUPDATE
§ DDTRSLMIMPORT
§ Online,usingDDOL
§ UsingSQLtodefinetables– MakingtablesSQL-ablethatwerenotcreatedviaSQL– Definingthedatabase(CREATEDATABASEin15.0,15.1)
105 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleADDofDatabaseStructure
//SYSIN DD *
-ADD DATABASE,dboccname(T001)1001 'author' 'controller'1101 descriptorname1103 aliasname1200 TEXT CLS STANDARD1200 TEXT ADDThis is a sample database add1200 TEXT END2900 05000 RELATION DATACOM 000 NN-END
PartI-- Database
106 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleADDofDatabaseStructure
-ADD AREA,areaoccname(T001)1000 CONNECT,dboccname1001 'author' 'controller'...-END
-ADD TABLE,tbloccname(T001)1000 CONNECT,areaoccname1001 'author' 'controller'...-END
PartII– Area,Table
107 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleADDofDatabaseStructure
-GRP START,TABLE,tbloccname(T001)-ADD FIELD,first-field4010
4012
...-END-ADD FIELD,last-field...-END-GRP END
PartIII– Fields(columns)
108 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleADDofDatabaseStructure
-ADD KEY,tbloccname.key1(T001)
5000...-END-ADD ELEMENT,tbloccname.elem1(T001)
6000...-END//
PartIV– Key,Element
109 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleUpdateOccurrenceandDeletes
//SYSINDD*
-UPDDATABASE,dboccname(T001)290004998-END
-DELDATABASE,dboccname(T001)-END
-DELTABLE,tbloccname(T001)-END
//
PartIV– Key,Element
110 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
OtherFunctions1000DISABLE
1000ENABLE
1000RESTORE
1000SET
1000VERIFY
1000ALTER
1000CATALOG
1000TRANSFER
1000NEWNAME
1500AttributeValueUpdate
111 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleofAdditionalFunctions
//SYSIN DD *
-UPD DATABASE,dboccname(PROD)1000 DISABLE-END
-UPD DATABASE,dboccname(T001)1000 VERIFY-END
-DEL DATABASE,dboccname1000 OBSOLETE-END
//
112 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleofAdditionalFunctions
//SYSIN DD *
-UPD DATABASE,dboccname(PROD)1000 ALTER1500 DYNAMIC-EXTEND,T-END
-UPD AREA,dboccname(PROD)1000 ALTER1500 BLOCK-SIZE,8192 -END
//
Continued
113 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleofUpdate
//SYSIN DD *
-UPD DATABASE,dboccname(T001)2900 04998-END
-DEL DATABASE,dboccname(T001)-END
-DEL DATABASE,dboccname1000 OBSOLETE-END
//
114 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDBTGLM– BatchTransactionGenerator
§ GeneratesbatchtransactionsacceptedbyDDUPDATE
§ Buildstransactionsfromexistingdatabasedefinitions
§ Usedtotransferormodifydatabasedefinitions
§ Samejobstreamformatas-ADDinDDUPDATE
§ Uses-BTGfunctionheaderinstead– AddsentityifnotpresentinDatadictionary
– ReplacesentityifalreadyinDatadictionary(excepttableandbelow)
115 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDTRSLM– MigrateSQLDefinitions
§ EXPORT,IMPORT,TRIAL,SET
§ UsetomigratePlans,Programs,Synonyms,Tables,Views,TriggersandProcedure– EXCLUDE/INCLUDE
– ONLY
– TRIAL– checkforconflictsormissingdependencies
– SET– USER,FORMAT,MODE,COLLISION,TRACE
116 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDUTILTY– BatchReportsandSourceLanguageStmts.
§ Reports:ALIAS,DEFINITIONS,DESCRIPTORS,DETAIL,FIELD,INDENTED,INDEX,RELATIONSHIP,SCHEMA,TEXT
§ Usepathingtoproducereportsofrelatedentities– DEFPATH,TRACEF,TRACEB
§ ProducecopybooksforTABLE,RECORD,KEYorELEMENToccurrences– Assemblername,COBOLnames,Datareporter,PL/I,SQLtoincludeinprograms
117 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDRMFLM– RecordMigrationFacility
§ Insertnewfield(s)intoatable
§ Deletefieldsfromatable
§ Changetheorderoffieldsinatable
§ Changecertainfieldtypestoothertypesinatable
§ Changefieldlengthsinatable
Batchfacilitytochangetheformatofdatarecords
118 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDICF– InputCreationFacility
§ Primaryuseistomoveanon-databasetabletoDatacom
§ Inputiscopybook,outputisasourcememberconsistingofDDDUPDATEtransactions
§ Couldbeusedtochangeatabledefinitionifworkingwithacopybookwaseasier
CreateDatadictionarydefinitionsfromcopybooks
119 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDCFBLD– ControlFileBuild
§ Threeflavors:– -CXXBUILD(forDATA-DICT,DDD-DATABASE,databasesnotaccessedbySQL)
§ RequiressubsequentDBUTLTYOPTION=DDPROD
– -CXXCATALOG(foranydatabaseexceptDATA-DICTandDDD-DATABASE)
– -HSDRESET(toupdatetheHSDwithoutaCATALOG)
UpdateCXX/HSD/DDDwithdefinitionsmaintainedinDATA-DICT
120 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DDSDCLM– StructureDefinitionComparator
§ Availablefor12.0,14.0and15.0forupgradestonextrelease
§ DocumentedinDatadictionaryBatchReferenceGuide
§ InsuresintegrityofDATA-DICTdatabase
§ Producesareportidentifyinganydiscrepancies
§ Discrepanciesmustberesolvedpriortoupgrading
§ VarioussolutionsdeliverDDUPDATEtransactionstofixerrorconditions
ValidatesDATA-DICTstructurebeforeanupgrade
121 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
UsingDatadictionaryOnline(DDOL)
§ CICSbasedtransactions
§ Multiplemodes
§ Multiplelevelsandclassesofusers
§ Internalorexternalsecurity
§ SeeDatadictionaryOnlineUserGuide
122 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MainMenuSelectionDDOL
123 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabaseStructureMaintenanceDDOL
124 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DefiningtheDatabase
§ Chooseappropriatemethodtocreatethedatabasedefinitions
§ Determinevaluestospecifyforeachattribute
§ Addentity-occurrenceswiththerelatedattributevalues
§ Reviewthedefinitions
125 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ModuleSummary
§ Identifythecomponentsofadatabasestructure
§ Namethemethodsfordefiningadatabase
§ Createasimpledatabaseanditscomponents
§ Catalogadatabase
Whatwehavedone
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.126 @CAWORLD#CAWORLD
MainframeandWorkloadAutomation
FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI
127 ©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
MFX98SUsingSysview tomonitorandmeasureyourCADatacomenvironment– ADandDB 11/17/2016at3:00pm
MFX99S BirdsofaFeather/StumptheTechie! 11/17/2016at3:45pm
128 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MustSeeDemos
DemoNameProductXTheater#location
DemoNameServicesYTheater#location
DemoNameSolutionYTheater#location
DemoNameProductXTheater#location
129 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
130 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
131 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation