131
World ® ’1 6 Introduction to CA Datacom Key Concepts and Facilities – Part I Dale Russell Director Software Engineering and Product Owner CA Technologies MFX68EA MAINFRAME AND WORKLOAD AUTOMATION

Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

Embed Size (px)

Citation preview

Page 1: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

World®’16

IntroductiontoCADatacomKeyConceptsandFacilities– PartIDaleRussellDirectorSoftwareEngineeringandProductOwnerCATechnologies

MFX68EA

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

Thisisamulti-partsessiontargetedtowardsthenewCADatacomDBAorsystemsprogrammer.ThesessioncoversthekeyconceptsandfacilitiesforimplementingandmanagingtheCADatacomenvironment.

DaleRussell

DirectorSoftwareEngineeringandProductOwner

CATechnologies

Page 3: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Module1:Introduction

Page 4: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

IntroductiontoCADatacomKeyConceptsandFacilities

§ CADatacom/DBDatabaseAdministration– 7hoursplanned,2sessions,12modules

§ Audience– DatabaseAdministratorsandthoseresponsibleforsupportingCA

Datacom/DB

§ Prerequisites– Knowledgeofz/OSJCL,macroassemblies,basicoperatingsystem

concepts– FamiliaritywiththeDBAjobfunctionorsomeexperienceasaDBA

Introduction

Page 5: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

IntroductoryDBAEducation

§ Duringthemorningsession,youwill:– LearnkeyCADatacom/DBdatabaseconcepts– LearnwhataMulti-UserFacility(MUF)is– LearntheroleoftheDatadictionary

§ Duringtheafternoonsession,youwill:– LearntheprimaryDBUTLTYfunctions– Learnwhatroutineoperationsshouldbeperformed– Learnhowloggingandrecoverywork– LearnhowtoreportaproblemtoCASupport

Modules

Page 6: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

IntroductoryDBAEducation

§ Duringtheafternoon(contd.):– LearnhowbatchandonlineprogramsaccessMUF– LearnwhataMUFplexis– LearnwhatCADatacomCICSServicesdoes– LearnhowtomonitorandmanageonlineURTs

Modules- continued

Page 7: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 8: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Module2:CADatacom/DBKeyDatabaseConcepts

Page 9: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ModuleObjectives

DEFINERELATIONALDATABASECONCEPTS

NAMETHECOMPONENTSOFCADATACOM/DB

EXPLAINTHESTRUCTUREOFADATABASE

1

2

3

Page 10: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RelationalDatabaseConcepts

§ Databasesconsistsoftables

§ Tablesconsistofrows

§ Rowscontaincolumns

§ Rowsofonetablecanberelatedtorowsinanothertable

§ Rulesexistforcontrollingtherelatingofrows

Page 11: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 12: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RelationalDatabaseConcepts

§ Viewsoftable(s)canbecreated– Segregateslogicalviewofdatafromphysicaldata– Insulatesapplicationsfromphysicaldatachanges– Dataappearsonlyonce– Standardsandintegritiescanbeenforced

continued

Page 13: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RelationalDatabaseConceptscontinued

Page 14: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TheCADatacomProductFamily– CoreProducts

§ CADatacom/DB§ CADatacomDatadictionary§ CADataquery forCADatacom§ CADatacomSQL§ CADatacomCICSServices§ CADatacomPresspack§ CADatacomFastRestore

Page 15: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TheCADatacomProductFamily– AdditionalProducts

§ CADatacomServer§ CAIdealforCADatacom§ CAIPC(Inter-ProductComponents)§ CADatacomVSAMTransparency§ CADatacomDL1Transparency§ CADatacomTOTALTransparency§ CADatacomResourceAnalyzer

Page 16: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

OtherRelatedCAProducts

§ CACommonServices(CCS)§ CASYSVIEW

Page 17: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SystemArchitecture

CXX

PXX

LXX

RXXDirectory

StatisticsandDiagnosticsArea RecoveryArea

LogAreaFXX

ForcedLogArea

Index Area

IXXIXX IXX

DataAreas DATA-DICTandotherSystemAreas

DataAreas

Page 18: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Directory

§ Containsstructuralandstatusinformationoneverydatabaseintheenvironment

§ OneperDMBSenvironment

CXX

Page 19: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LogArea

§ Temporaryholderoflogrecords§ Basicallymaintenancetransactionbeforeandafterimages§ Providestransactionbackout andMUFrestartcapabilities

LXX

Page 20: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ForcedLogArea

§ Containslogging-relatedinformationthathasbeenforcedfromtheLogArea(LXX)

§ DoesnotneedtobeaslargeastheLXXbutmusthavethesameBLKSIZE

§ UsedbyMUFtofacilitaterestartprocessing

FXX

Page 21: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecoveryArea

§ Permanentholderofcommittedlogrecords§ UsedwithLogArea(s)toprovideforwardandbackward

recoverycapabilities

RXX

Page 22: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

StatisticsandDiagnosticsArea

§ ContainssystemstatisticsandmasterlistdumpsifMUFSYSOUTstartupoptionnotpresent

§ Providesinformationformonitoringandtuning

CADatacom/DB

PXX

Page 23: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

IndexArea

§ Providesfastaccesstodatacontainedwithinadatabase§ Compoundrelationalindexstructure§ OnelogicalIXXperdatabase§ Canbesplitinto

multiplephysicalInndatasets

IXX

Page 24: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CompoundRelationalIndex

§ BalancedB-treestructure§ High-levelcontainskeyrangesandprovidesaccessibilityto

low-levelindex§ Low-levelcontainskeyvaluesanddatarecordaddresses§ Self-reorganizing

Page 25: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataandIndexArea

§ Eachresidesinitsownphysicaldataset

§ Nologicalsizerestriction

§ Inz/OScanoccupyupto59dasd volumes

§ Upto240dataareasperdatabase

AREA

Page 26: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 27: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 28: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 29: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents

Page 30: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents

§ EachdatabasemustfirstbedefinedtoCADatadictionary(DBID002)§ AllcomponentshaveanexternalDatadictionaryname§ ExternalDatadictionarynamesarefrom1to32characterslong§ Inaddition,areas,tables,keysandelementshaveaninternalnameused

byDatacom/DB§ InternalDatacomareaandtablenamesmustbe3characterslong§ Internalkeyandelementnamescanbefrom1to5characterslong§ Nologicalcolumnorelementlimit(butmaximumrowsizeis32720)

continued

Page 31: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Database

§ Groupoflogicallyrelatedtables§ 5000databasesperDBMSenvironment§ 240tablesperdatabase(1,200,000tables)

Page 32: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Area(s)

§ Physicalstorageofdatatables§ Transparenttotheuser§ Physicallycontainoneormoretables§ Upto240areas

perdatabase

Page 33: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Table(s)

Page 34: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Element

§ Unitofdatatransfer§ 1- to5-byteDATACOM-NAME§ Composedofcontiguouscolumnswithinarow§ Upto255Elementspertable

Page 35: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Key

§ Oneormorecolumns,contiguous/non-contiguous,anyorder,ascending/descending(max180bytes)

§ Orderedbasedonbinaryvalue(default)oractualnumericcollatingsequence

§ Optimizesdataaccess,canbesharedacrosstables§ 1- to5-characterDATACOM-NAME

Page 36: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– MasterKey

§ Ensuresdataintegrity§ Canbeuniqueandnon-updatable§ SingleMasterKeyrequiredforeachtable

Page 37: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– NativeKey

§ Shouldreflectphysicalorderofdatamostoftenusedbysequentialprocesses

§ SingleNativeKeyrequiredforeachtable§ CanbethesameastheMasterKey§ CanbeusedtoreorganizedataviaDBUTLTYBackup

Page 38: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– UniqueKey

§ CanbetheNativeand/orMasterKey§ Anynumberofkeysmaybeunique

Page 39: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Non-UniqueKey

§ CanbetheNativeKey§ Duplicatekeyvaluesareallowed

Page 40: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– DirectAccessKey

§ CannotbetheMasterorNativeKey§ Mustbeanumeric4-bytebinaryunsignedcolumn§ MusthaveUNIQUEattributedefined§ Tablemustbeuncompressed,singletablearea,DSOP=0§ Onlysupportedforretrievalbyread-by-key-exactcommands§ Norealindexexists,specialconditionsforADD,UPD,DEL

Page 41: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureComponents– Dataviews

§ Logicalviewofdata§ Composedofoneormoreelements§ UsedbyCAIdeal

Page 42: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ModuleSummary

§ Youshouldnowbeableto—Definerelationaldatabaseconcepts—NamethecomponentsofCADatacom/DB—Explainthestructureofadatabase

Page 43: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Module3:TheMulti-UserFacility(MUF)

Page 44: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

STATETHEPURPOSEOFTHEMULTI-USERFACILITY

LEARNMULTI-USERSTARTUPOPTIONS

ISSUEMULTI-USERCONSOLECOMMANDS

INTERPRETMULTI-USERMESSAGES

1

2

3

4

Page 45: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Multi-UserFacility(MUF)

§ Centralizeddatabasemanagementandcontrol

§ Sharedresources

§ Multiple(thousands)ofsimultaneousread/updateusers

Page 46: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Multi-UserFacility(MUF)

§ Allowsmanyuserstobeservicedconcurrently

continued

Page 47: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 48: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ProgramtoMUFConnectivity

§ DBSYSIDmacroassembledandlinkeditedtocreatemoduleDBSIDPR

§ DBSIDPRloadedbyMUFatstartup

§ DBSIDPRloadedbyapplicationsatUserRequirementTable(URT)open

§ IdentifiesaspecificMUFwithinaprocessingimageusingTARGET_MUF_LISTvalue

§ SupportforCrossCouplingFacility(XCF)access

§ SupportforCommonCommunicationInterface(CCI)accessusingTCPIP– z/OSMUFplex,z/OSSysplex

Page 49: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PCCallAccessWithinSingleImage

Page 50: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Syxplex Communication

§ ViaXCF

Page 51: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Non-Syxplex Communication

§ ViaCCI

Page 52: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowMUFplex (ModeS)

Page 53: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

53 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingMUFplex (ModeAorB)

Page 54: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 55: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

55 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterListOptions

§ StillloadedbyMUF

§ OnlyparameterthataffectsMUF– SMFRTY128-255(z/OSonly)

§ StillusedbyDBUTLTY

DBMSTLSTmacro

Page 56: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 57: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

57 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ TASKS#tasks,size,0,0,xcftasks– TASKS250,32K,0,0,250– TASKS6999,64K,0,0,200

Users

Page 58: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

58 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ DATACOMentry1,entry2,…– DATACOMDB,SQL,DQ,PRESSPACKor– DATACOMDB– DATACOMSQL– DATACOMDQ– DATACOMPRESSPACK

§ DICTIONARYdatadict-dbid,ddd-dbid– DATADICTIONARY 2,15

Products

Page 59: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 60: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

60 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ DATASPACEnnnnM– DATASPACE2048M

§ VIRTUALarea,size– VIRTUALIXX006,50M– VIRTUALIXX017,256K– VIRTUALTTM017,2G

MemoryResidentDataFacility(MRDF)

Page 61: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

61 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ COVEREDarea,size,active/first,begin-blk– COVEREDPAY00001,50%– COVEREDA0100781,110%– COVERED781,110%– COVERED36,90K,FIRST

MemoryResidentDataFacility(MRDF)- continued

Page 62: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

62 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ SMPTASKmaximum,current,ready,zIIP– SMPTASK4,2,4,SRB

§ IOTASKmaximum,current (default0)– IOTASK4,4

CPUs

Page 63: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 64: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

64 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ LOGOPTIONyes/no– LOGOPTIONNO(thedefault)

§ LOGPENDnumber– LOGPEND500

§ LOGPOOLnumber– LOGPOOL30

§ LOGRCVnever/no/yes,dualrxx– LOGRCVNO

LoggingandRecovery

Page 65: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

65 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ LOGSPILLa,b,c,d,e– LOGSPILL35,85,25,30,20

§ RSScontinue/fail– RSSCONTINUE(requiresRXXROLLBACKYES)

§ RXXROLLBACKyes/no– RXXROLLBACKYES

LoggingandRecovery

Page 66: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 67: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 68: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

68 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ READAHDindex/physical(onlyappliestoprogramswithpre-8.1URTs)– READAHDINDEX

§ MAXELRQ3-255(use255ifSQLstartupoptionsinuse)– MAXELRQ255

ProgramSupport

Page 69: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 70: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 71: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 72: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

72 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ BREAK2-500– BREAK100

§ NONSWAPno/yes– NONSWAPYES

Performance

Page 73: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

73 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ RCERRORmldump,mlbufdump,rc(s)– RCERRORYES,YES,08008– RCERRORYES,NO,10039– RCERRORNO,NO,10039

Diagnostics

Page 74: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

74 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ NORESTARTall/dbid– NORESTARTALL– NORESTART101

§ DORESTARTall/dbid– DORESTARTALL– DORESTART151,182– DORESTART21-99

Restart

Page 75: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 76: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 77: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 78: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 79: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

79 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFStartupOptions

§ CDCM_SIDNAMEname– CDCM_SIDNAMEDBSIDPX

§ CDCM_WARNn(1—28800)– CDCM_WARN120

CDC(continued)

Page 80: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

80 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFInitiation

§ LoadsMUFinitializationmodulesincludingDBMSTLST

§ EditsSYSINstartupoptions

§ LoadsadditionalMUFmodules

§ Performsrestartactivitiesifneeded

§ Producesstartupmessages

DBMUFPR

Page 81: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 82: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

82 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFConsoleCommands

– REQABORT– EOJ– EOJFREE(stillsupported,processedasEOJ)– EOJKEEP(stillsupported,processedasEOJ)– EOJOFF– CLRPXX– NEWRXX– SNAP

Continued

Page 83: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

83 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFConsoleCommands

– FLEXPOOL– SECURITY– SMPTASKm,c,r– SMPTASKR r– IOTASK i

Continued

Page 84: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 85: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

85 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

NEWCOPY

§ UsingNEWCOPYforDBmodulesisstronglydiscouraged

§ UseaShadowMUFtoperformDBmodulemaintenance

Continued

Page 86: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

86 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

NEWCOPYMessages

§ DB01314ENEWCOPYERRORn,wherenrepresentsanerror::1. Moduleisnotinalistofcandidatemodules.2. ModuleisnoteligibleforNEWCOPY.3. Loadfailedforanewcopy.4. UnabletodoNEWCOPYoftheprocedurebecausetheMulti-UserFacilityisnotauthorized.5. Moduleisnotcurrentlyinmemory.6. Currentmodulecannotberenamedinoperatingsystemcontrolblocks.

§ DB01326INEWCOPYCOMPLETEindicatesthatnoerroroccurred

Page 87: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 88: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

88 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFShutdown

§ BatchDBUTLTYCOMMOPTION=EOJ

§ ConsoleEOJcommand‘/fjobname/stcname,EOJ’

§ ConsoleSTOPcommand‘/fjobname/stcname,STOP’(treatedsameasEOJ)

Page 89: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

89 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MUFShutdown– Normal

§ Closedatabases

§ UpdatesPXX

§ EndsLOG(LXX)

§ UpdatesCXX

§ ProducesSYSPRINToutput

§ Closesalldatasets

Page 90: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

90 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ModuleSummary

§ StatethepurposeoftheMulti-UserFacility

§ NamesomeMulti-UserStartupoptions

§ IssueMulti-Userconsolecommands

§ InterpretMulti-Usermessages

Page 91: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

91 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Module4:Datadictionary

Page 92: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

92 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

IDENTIFYTHECOMPONENTSOFADATABASE

NAMETHEMETHODSFORDEFININGADATABASE

CREATEASIMPLEDATABASEANDITSCOMPONENTS

CATALOGADATABASE

1

2

3

4

Page 93: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

93 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CADatacomDatadictionary

§ Repositoryforall CADatacom/DBdatabaseinformation

§ Storesrelatedinformation– CAIdealforCADatacom

§ Canbeusedtostoreuserinformation– Additionalentities– Additionalrelationships

Page 94: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

94 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CADatacomDatadictionary

§ Wheredoesitreside?– DBID002

§ 32tablesinasinglearea(DD1)Version14.0§ 33tablesinasinglearea(DD1)Version15.0

– VLSfiles§ DDOFILE§ DDOFIL2§ MDUOLL(DDMAP)§ ADRPNL

Continued

Page 95: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

95 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CADatacomDatadictionary

§ RelationshiptotheCXX– DatadictionarypopulatestheCXX– DatabaseCATALOGcommand(DDUPDATE,online)– SQLDMLalsoupdatesCXX

§ CREATETABLE,ALTERTABLE§ Issuestable-levelCATALOGunderthecovers

Continued

Page 96: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

96 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CADatacom/DBModel

§ Namingconventions

§ Definingthemodel

§ Statusandversion

§ Relationships

§ CATALOGtotheCXX(andDDD)

§ BuildingSQLPlans

Page 97: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 98: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

98 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DefiningtheModel

§ Database

§ Area

§ Table– Fields(columns)– Keys(indexes)– Elements

§ Dataviews

Page 99: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 100: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 101: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 102: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 103: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 104: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

104 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UserDatabaseDefinition

§ Batch,usingDDUPDATE

§ GeneratetransactionsusingDDBTGLM,thenDDUPDATE

§ DDTRSLMIMPORT

§ Online,usingDDOL

§ UsingSQLtodefinetables– MakingtablesSQL-ablethatwerenotcreatedviaSQL– Definingthedatabase(CREATEDATABASEin15.0,15.1)

Page 105: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 106: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 107: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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)

Page 108: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

108 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleADDofDatabaseStructure

-ADD KEY,tbloccname.key1(T001)

5000...-END-ADD ELEMENT,tbloccname.elem1(T001)

6000...-END//

PartIV– Key,Element

Page 109: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

109 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleUpdateOccurrenceandDeletes

//SYSINDD*

-UPDDATABASE,dboccname(T001)290004998-END

-DELDATABASE,dboccname(T001)-END

-DELTABLE,tbloccname(T001)-END

//

PartIV– Key,Element

Page 110: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

110 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

OtherFunctions1000DISABLE

1000ENABLE

1000RESTORE

1000SET

1000VERIFY

1000ALTER

1000CATALOG

1000TRANSFER

1000NEWNAME

1500AttributeValueUpdate

Page 111: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

//

Page 112: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 113: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

//

Page 114: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

114 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DDBTGLM– BatchTransactionGenerator

§ GeneratesbatchtransactionsacceptedbyDDUPDATE

§ Buildstransactionsfromexistingdatabasedefinitions

§ Usedtotransferormodifydatabasedefinitions

§ Samejobstreamformatas-ADDinDDUPDATE

§ Uses-BTGfunctionheaderinstead– AddsentityifnotpresentinDatadictionary

– ReplacesentityifalreadyinDatadictionary(excepttableandbelow)

Page 115: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 116: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 117: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

117 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DDRMFLM– RecordMigrationFacility

§ Insertnewfield(s)intoatable

§ Deletefieldsfromatable

§ Changetheorderoffieldsinatable

§ Changecertainfieldtypestoothertypesinatable

§ Changefieldlengthsinatable

Batchfacilitytochangetheformatofdatarecords

Page 118: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

118 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DDICF– InputCreationFacility

§ Primaryuseistomoveanon-databasetabletoDatacom

§ Inputiscopybook,outputisasourcememberconsistingofDDDUPDATEtransactions

§ Couldbeusedtochangeatabledefinitionifworkingwithacopybookwaseasier

CreateDatadictionarydefinitionsfromcopybooks

Page 119: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 120: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

120 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DDSDCLM– StructureDefinitionComparator

§ Availablefor12.0,14.0and15.0forupgradestonextrelease

§ DocumentedinDatadictionaryBatchReferenceGuide

§ InsuresintegrityofDATA-DICTdatabase

§ Producesareportidentifyinganydiscrepancies

§ Discrepanciesmustberesolvedpriortoupgrading

§ VarioussolutionsdeliverDDUPDATEtransactionstofixerrorconditions

ValidatesDATA-DICTstructurebeforeanupgrade

Page 121: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

121 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UsingDatadictionaryOnline(DDOL)

§ CICSbasedtransactions

§ Multiplemodes

§ Multiplelevelsandclassesofusers

§ Internalorexternalsecurity

§ SeeDatadictionaryOnlineUserGuide

Page 122: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

122 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MainMenuSelectionDDOL

Page 123: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

123 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DatabaseStructureMaintenanceDDOL

Page 124: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

124 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DefiningtheDatabase

§ Chooseappropriatemethodtocreatethedatabasedefinitions

§ Determinevaluestospecifyforeachattribute

§ Addentity-occurrenceswiththerelatedattributevalues

§ Reviewthedefinitions

Page 125: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

125 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ModuleSummary

§ Identifythecomponentsofadatabasestructure

§ Namethemethodsfordefiningadatabase

§ Createasimpledatabaseanditscomponents

§ Catalogadatabase

Whatwehavedone

Page 126: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

MainframeandWorkloadAutomation

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

Page 127: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

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

Page 128: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

128 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

DemoNameProductXTheater#location

DemoNameServicesYTheater#location

DemoNameSolutionYTheater#location

DemoNameProductXTheater#location

Page 129: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

129 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 130: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

130 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

Page 131: Pre-Con Ed: Introduction to CA Datacom Key Concepts and Facilities Part I

131 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation