ca idms database navigation

of 146/146
World ® ’1 6 CA IDMS™ Database Navigation John Siraco, Director, Software Engineering CA Technologies MFX72E MAINFRAME AND WORKLOAD AUTOMATION

Post on 16-Apr-2017

152 views

Category:

Technology

8 download

Embed Size (px)

TRANSCRIPT

  • World16

    CAIDMSDatabaseNavigation

    JohnSiraco,Director,SoftwareEngineeringCATechnologies

    MFX72E

    MAINFRAMEANDWORKLOADAUTOMATION

  • 2 [email protected]#CAWORLD

    Abstract

    TheCAIDMSDatabaseNavigationcoursefocusesonthecharacteristicsofaCAIDMSdatabaseandtheeffectsofprogramminginthatenvironment.Youwilllearnhowtonavigatethroughanetworkdatabaseenvironmentusingdatastructuresandcurrencyratherthancomplexprogrammingsyntax.YouwillalsolearntohowtousenavigationalDMLstatements.

    JohnSiraco

    CATechnologiesDirector,SoftwareEngineering

  • 3 [email protected]#CAWORLD

    Agenda

    INTRODUCTIONTOCAIDMS/DB

    DATARELATIONSHIPS

    CURRENCY

    DATASTORAGE

    SETSTRUCTURES

    DATASTRUCTUREDIAGRAM

    1

    2

    3

    4

    5

    6

  • 4 [email protected]#CAWORLD

    Agendacontinued

    PREPARINGFORDATABASEACCESS

    VERIFYINGDATABASEACCESSRESULTS

    RETRIEVINGDATA

    UPDATINGDATA

    PROTECTINGDATAINTEGRITY

    7

    8

    9

    10

    11

  • 5 [email protected]#CAWORLD

    IntroductiontoCAIDMS/DB

  • 6 [email protected]#CAWORLD

    CharacteristicsofCAIDMS/DB

    CAIDMSisusedfor: Centralizingdata Controllingthecorporateinformationenvironment ManagingCommunications Developingapplications

  • 7 [email protected]#CAWORLD

    CentralizingData

  • 8 [email protected]#CAWORLD

    ControlsandDocumentstheEnvironment

  • 9 [email protected]#CAWORLD

    ManagingCommunications

  • 10 [email protected]#CAWORLD

    DevelopingApplications

    Menuandsyntaxdriventools

    DataManipulationLanguage(DML)

    Reportgenerators

    Fourth-generation(4GL)languagesanddevelopmenttools

    SQL

  • 11 [email protected]#CAWORLD

    BasicCAIDMSTerminology

    Schema LogicalDefinition

    Subschema LogicalDefinition

    DMCL PhysicalDefinition

    Complete description ofthe database

    Complete or partialdescription of thedatabaseRestrictions

    File description of thedatabaseBuffer definitionJournal definition

    Source code only Source code and loadmodule

    Source code and loadmodule

    Not used at run time Used at run time Used at run time

    Typically one perdatabase

    Unlimited number perdatabase

    Unlimited number perdatabase

  • 12 [email protected]#CAWORLD

    DataStructureDiagram

  • 13 [email protected]#CAWORLD

    DatabaseAccessTechniques

    SQL

    Navigational DataManipulationLanguage DML

    Non-navigational LogicalRecordFacility- LRF

  • 14 [email protected]#CAWORLD

    DataRelationships

  • 15 2016CA.ALLR[email protected]#CAWORLD

    RecordTypeandRecordOccurrence

    EmployeeRecord

    1234 John Doe 123OakTerraceMadRiverOH123456666516-222-3232 0 012-34-5678

    5253 June Moon 18BalliolStCambridgeMA021235555617-222-2121 0 098-76-5432

  • 16 [email protected]#CAWORLD

    SQLTerminology

    Logical/physicaldesignterminology

    SQLterminology

    Non-SQLterminology

    Entity Table Record-typeEntityOccurrence

    Row RecordOccurrence

    Data element Column Field element

  • 17 [email protected]#CAWORLD

    RelationshipsBetweenRecords

  • 18 [email protected]#CAWORLD

    ImplementingRelationshipsBetweenRecords

    Foreignkeys

    Sets

  • 19 [email protected]#CAWORLD

    ImplementingaOne-To-OneRelationshipWithaForeignKey

  • 20 [email protected]#CAWORLD

    ImplementingaOne-To-ManyRelationshipWithaForeignKey

  • 21 [email protected]#CAWORLD

    ImplementingaMany-To-ManyRelationshipWithaForeignKey

  • 22 [email protected]#CAWORLD

    SetTypeandSetOccurrence

  • 23 [email protected]#CAWORLD

    ImplementingaMany-To-ManyRelationshipWithSets

  • 24 [email protected]#CAWORLD

    ImplementingaMany-To-ManyNestedRelationshipWithSets

  • 25 [email protected]#CAWORLD

    DataStorage

  • 26 [email protected]#CAWORLD

    DataStorageOverview

  • 27 [email protected]#CAWORLD

    DatabaseAreaAssignment

  • 28 [email protected]#CAWORLD

    DatabasePage

  • 29 [email protected]#CAWORLD

    DatabaseKeys

  • 30 [email protected]#CAWORLD

    LocationModes

  • 31 [email protected]#CAWORLD

    UsingaUniqueKeyasCALCKey

  • 32 [email protected]#CAWORLD

    UsingNonuniqueKeyasCALCKey

  • 33 [email protected]#CAWORLD

    VIALocationMode

  • 34 [email protected]#CAWORLD

    RecordsStoredVIAinaDifferentArea

  • 35 [email protected]#CAWORLD

    RecordsStoredDIRECTinanArea

  • 36 [email protected]#CAWORLD

    RecordsStoredDIRECTRelatedbySet

  • 37 [email protected]#CAWORLD

    SetStructures

  • 38 [email protected]#CAWORLD

    ChainedSets

  • 39 [email protected]#CAWORLD

    IndexedSets

    System-owned

    User-owned

  • 40 [email protected]#CAWORLD

    System-ownedIndexedSet

  • 41 [email protected]#CAWORLD

    User-ownedIndexedSet

  • 42 [email protected]#CAWORLD

    ChainedSetPointers

  • 43 [email protected]#CAWORLD

    ChainedSetPointers(cont.)

  • 44 [email protected]#CAWORLD

    System-ownedIndexedSetPointers

  • 45 [email protected]#CAWORLD

    User-ownedIndexedSetPointers

  • 46 [email protected]#CAWORLD

    OrderOptions

  • 47 [email protected]#CAWORLD

    SetMembershipOptions

  • 48 [email protected]#CAWORLD

    ConnectOptions

  • 49 [email protected]#CAWORLD

    DisconnectOptions

  • 50 [email protected]#CAWORLD

    DataStructureDiagram

  • 51 [email protected]#CAWORLD

    RecordComponents

  • 52 [email protected]#CAWORLD

    ForeignKeyRepresentation

  • 53 [email protected]#CAWORLD

    SetRepresentation

  • 54 [email protected]#CAWORLD

    Currency

  • 55 [email protected]#CAWORLD

    HowtheDBMSUsesCurrencytoWalkaSet

    5

  • 56 [email protected]#CAWORLD

    HowtheDBMSUsesCurrencytoSweepanArea

  • 57 2016CA.ALLRI[email protected]#CAWORLD

    CategoriesofCurrencyRUN UNIT 1002:3 RECORD

    EMPLOYEE 1002:1 DEPARTMENT 4001:4 EXPERTISE 1002:3

    .

    .

    . SET

    DEPT-EMPLOYEE CURRENT 1002:1 NEXT 1000:1 PRIOR 1040:1 OWNER 4001:4

    EMP-EXPERTISE CURRENT 1002:3 NEXT 1002:5 PRIOR 1002:1 OWNER 1002:1 . . .

    AREA EMP-DEMO-REGION 1002:3 ORG-DEMO-REGION 4001:4

    .

    .

    .

  • 58 [email protected]#CAWORLD

    TrackingCurrencyChanges

  • 59 [email protected]#CAWORLD

    TrackingCurrencyChanges(cont.)

    JOB-EMPOSITION

  • 60 [email protected]#CAWORLD

    HowDMLVerbsUseandUpdateCurrency

  • 61 [email protected]#CAWORLD

    HowDMLVerbsUseandUpdateCurrency(cont.)

  • 62 [email protected]#CAWORLD

    HowDMLVerbsUseandUpdateCurrency(cont.)

  • 63 [email protected]#CAWORLD

    PreparingforDatabaseAccess

  • 64 [email protected]#CAWORLD

    DBMSRequirementsforDatabaseAccess

  • 65 [email protected]#CAWORLD

    HostLanguageProgramRequirements

    ConversionofDMLrequests Inthebatchenvironment

    COBOL PL/I Assembler

    Intheonlineenvironment COBOL PL/I Assembler

    Run-timeexecutionoftheprogram

  • 66 [email protected]#CAWORLD

    ConvertingDMLRequests

    Compiler-directivestatementsidentify: Theoperatingmode Thesubschemaandschemanames Recorddescriptions

    InputtotheDMLPrecompiler Hostlanguageprogram Informationfromthedatadictionary

    OutputfromtheDMLprecompiler Errorlisting Hostlanguageprogram

  • 67 [email protected]#CAWORLD

    CompilingaCAIDMSProgram

  • 68 [email protected]#CAWORLD

    DMLErrorMessages

    I(Informational)

    W(Warning)

    E(Error)

    F(Fatal)

    T(Terminal)

  • 69 [email protected]#CAWORLD

    COBOLProgramRequirementsforDatabaseAccess

  • 70 [email protected]#CAWORLD

    COBOLProgramRequirementsforDatabaseAccess(cont.)

  • 71 [email protected]#CAWORLD

    IdentifyingtheOperatingMode

  • 72 [email protected]#CAWORLD

    IdentifyingtheSubschemaandSchema

  • 73 [email protected]#CAWORLD

    IncludingRecordDescriptionsAutomatically

  • 74 [email protected]#CAWORLD

    IncludingRecordDescriptionsManually

  • 75 [email protected]#CAWORLD

    IDMSSubschemaDescriptionsSUBSCHEMA-DESCRIPTION

    SUBSCHEMA-CONTROL

    SUBSCHEMA-CTRL

    SUBSCHEMA-NAMES

    SUBSCHEMA-SSNAME

    SUBSCHEMA-RECNAME

    SUBSCHEMA-SETNAME

    SUBSCHEMA-AREANAME

    SUBSCHEMA-RECORDS

  • 76 [email protected]#CAWORLD

    WhatisaRunUnit?

  • 77 [email protected]#CAWORLD

    BindRun-Unit

  • 78 [email protected]#CAWORLD

    IdentifyingtheLocationofRecordsinVariableStorage

  • 79 [email protected]#CAWORLD

    IdentifyingDatabaseAreasforAccess

  • 80 [email protected]#CAWORLD

    AreaUsageModes

  • 81 [email protected]#CAWORLD

    EndingaRunUnit

  • 82 [email protected]#CAWORLD

    VerifyingDatabaseAccessResults

  • 83 [email protected]#CAWORLD

    GeneralCodingConsiderations

  • 84 [email protected]#CAWORLD

    IDMSCommunicationsBlock(SUBSCHEMA-CTRL)

    ProgramVariableStorage 01 SUBSCHEMA-CTRL.

    03 PROGRAM-NAME

    03 ERROR-STATUS

    03 DBKEY

    03 RECORD-NAME

    03 AREA-NAME

    03 ERROR-SET

    03 ERROR-RECORD

    03 ERROR-AREA

    03 IDBMSCOM-AREA

    03 DIRECT-DBKEY

    03 DATABASE-STATUS

    03 RECORD-OCCUR

    03 DML-SEQUENCE

  • 85 2016CA.ALLRIGHTSRESE[email protected]#CAWORLD

    Error-Status

    Majorcode

    Minorcode

    FIND/OBTAIN 03 26 Record not found

    FIND/OBTAIN 03 07 End of set, area, or index

    READY 09 66 Area not available forrequested usage mode

    STORE 12 05 Storage would violateduplicates not allowed (DN)

  • 86 [email protected]#CAWORLD

    IDMS-STATUS(BATCH)

  • 87 [email protected]#CAWORLD

    IDMS-STATUS(BATCH)

  • 88 [email protected]#CAWORLD

    StepsRequiredWithandWithoutAUTOSTATUS

    WithAUTOSTATUS UseONclauseinDMLstatement IncludeIDMS-STATUSinprogram

    WithoutAUTOSTATUS UseIFtestafterDMLstatement PerformIDMS-STATUSaftereachDMLstatement IncludeIDMS-STATUSinprogram

  • 89 [email protected]#CAWORLD

    SampleCOBOLCodeUsingAUTOSTATUS

  • 90 [email protected]#CAWORLD

    SampleCOBOLWithoutUsingAUTOSTATUS

  • 91 [email protected]#CAWORLD

    RetrievingData

  • 92 [email protected]#CAWORLD

    DatabaseRetrieval

    FIND

    GET

    OBTAIN

    RETURN

  • 93 [email protected]#CAWORLD

    DatabaseRetrievalUsingOBTAIN

  • 94 [email protected]#CAWORLD

    DatabaseRetrievalUsingRETURN

  • 95 [email protected]#CAWORLD

    EnteringtheDatabaseAREA CALC

    All Record Types CALC location moderecords

    Physical Position Randomizing algorithm

    First, last, or Nth ofparticular record type orall records in area

    Symbolic key value forrecord occurrence

    INDEX DB-KEYRecord types within asystem-owned record

    All record types

    Symbolic key value forrecord occurrence

    Any database recordoccurrence

    First, last or Nth record inindex

    Direct location mode orpreviously accessed inearlier run unit with DB-keypassed to run unit

  • 96 [email protected]#CAWORLD

    RetrievingCALCRecords

    RetrievalbyCALCkeyinvolves

    Fieldinitialization:MovetheCALC-keyvaluetotheCALC-keyfield

    Currencyused:None Commonnonzerostatuscodes:0326(DB-REC-

    NOT-FOUND)

  • 97 [email protected]#CAWORLD

    RetrievingCALCRecords

  • 98 [email protected]#CAWORLD

    RetrievingCALCRecords

  • 99 [email protected]#CAWORLD

    PerforminganAreaSweep

  • 100 [email protected]#CAWORLD

    PerforminganAreaSweep

    Currencyused:Area

    Commonnonzerostatuscodes:0307(DB-END-OF-SET)

  • 101 [email protected]#CAWORLD

    AreaSweep

  • 102 [email protected]#CAWORLD

    RetrievingRecordsinaChainedSet

    Retrievalofmembersofachainedsetinvolves:

    Currencyused:Currentofset Currencyupdated:

    Aftersuccessfulexecution:All Onend-of-setcondition:Theownerbecomescurrent

    ofrununit,record,area,andonlythesetbeing

  • 103 [email protected]#CAWORLD

    WaystoWalkaSet

  • 104 [email protected]#CAWORLD

    EndofSetCondition

  • 105 [email protected]#CAWORLD

    IFEMPTYTestMOVEIN-DEPT-IDTODEPT-ID-0410.OBTAINCALCDEPARTMENT

    ONDB-REC-NOT-FOUNDPERFORMDEPT-NOT-ON-DBGOTOREADNEXTDEPT.

    IFDEPT-EMPLOYEEEMPTYPERFORM900-NO-EMP-MSGELSEPERFORM350-DEPT-EMP-WALKTHRU350-EXITUNTILSET-END-SW=Y..350-DEPT-EMP-WALK.

    OBTAINNEXTEMPLOYEEWITHINDEPT-EMPLOYEE.ONDB-END-OF-SET

    MOVEYTOSET-END-SW.

  • 106 [email protected]#CAWORLD

    AccessingMultipleMemberSets Youcanaccessoccurrencesofasinglerecord

    type:

    Currencyused:Currentofset Commonnonzerostatuscodes:0307(DB-END-OF-

    SET)

  • 107 [email protected]#CAWORLD

    AccessingMultipleMemberSets Youcanaccessoccurrencesofallrecord

    types

  • 108 [email protected]#CAWORLD

    AccessingMultipleMemberSets

    Currencyused:Currentofset

    Commonnonzerostatuscodes:0307(DB-END-OF-SET)

  • 109 [email protected]#CAWORLD

    WalkingMultipleMemberSets

  • 110 [email protected]#CAWORLD

    OwnerRetrievalinOtherThanMandatoryAutomaticSets

  • 111 [email protected]#CAWORLD

    OwnerRetrievalinOtherThanMandatoryAutomaticSets

  • 112 [email protected]#CAWORLD

    ReestablishingCurrency

  • 113 [email protected]#CAWORLD

    ReestablishingCurrency

  • 114 [email protected]#CAWORLD

    NavigatingSortedSets

  • 115 [email protected]#CAWORLD

    PerformingGenericKeySearches

  • 116 [email protected]#CAWORLD

    NoncontiguousSortKeys

  • 117 [email protected]#CAWORLD

    UsingRETURNtoEstablishIndexSetCurrency

  • 118 [email protected]#CAWORLD

    UpdatingData

  • 119 [email protected]#CAWORLD

    StoringRecords

  • 120 [email protected]#CAWORLD

    ConnectingaRecordtoaSet

  • 121 [email protected]#CAWORLD

    DisconnectingaRecordfromaSet

  • 122 [email protected]#CAWORLD

    ModifyingDatabaseRecords

  • 123 [email protected]#CAWORLD

    ErasingDatabaseRecords-BasicERASE

  • 124 [email protected]#CAWORLD

    VariationsoftheERASEStatement

    ERASEPERMANENT

    ERASESELECTIVE

    ERASEALL

  • 125 [email protected]#CAWORLD

    QualifiedERASE

  • 126 [email protected]#CAWORLD

    UpdatingData

  • 127 [email protected]#CAWORLD

    DataIntegrityConcerns

  • 128 [email protected]#CAWORLD

    CentralVersionandLocalMode

  • 129 [email protected]#CAWORLD

    AreaLocks

  • 130 [email protected]#CAWORLD

    PotentialforConcurrentUpdate

  • 131 [email protected]#CAWORLD

    RecordLocks

  • 132 [email protected]#CAWORLD

    ImplicitRecordLocks

  • 133 [email protected]#CAWORLD

    ImplicitRecordLocks

  • 134 [email protected]#CAWORLD

    ImplicitRecordLocks

  • 135 [email protected]#CAWORLD

    AdditionalImplicitExclusiveLocks

  • 136 [email protected]#CAWORLD

    ExplicitRecordLocks

  • 137 [email protected]#CAWORLD

    ExplicitRecordLocks

  • 138 [email protected]#CAWORLD

    ExplicitRecordLocks

  • 139 [email protected]#CAWORLD

    RecoveryFromProgramorSystemFailure

  • 140 [email protected]#CAWORLD

    Journals

  • @CAWORLD#CAWORLD 2016CA.AllRIGHTSRESERVED.141 @CAWORLD#CAWORLD

    MainframeandWorkloadAutomation

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

  • 142 [email protected]#CAWORLD

    RecommendedSessionsSESSION# TITLE DATE/TIME

    MFX100S StrategyandVisionforCAIDMS 11/16/2016at12:45pm

    MFX101S LegacyisnotaDirtyWord 11/16/2016at1:45pm

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

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

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

    MFX105SImplementationandUseofGenericVTAMResourceswithParallelSYSPLEXFeatures(CA andCAXIA)

    11/17/2016at12:45pm

    MFX106S CAIDMSBufferTuning 11/17/2016at1:45pm

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

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

  • 143 [email protected]#CAWORLD

    MustSeeDemos

    DemoNameProductXTheater#location

    DemoNameServicesYTheater#location

    DemoNameSolutionYTheater#location

    DemoNameProductXTheater#location

  • 144 [email protected]#CAWORLD

    Questions?

  • 145 [email protected]#CAWORLD

    Thankyou.

    Stayconnectedatcommunities.ca.com

  • 146 [email protected]#CAWORLD

    2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

    Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

    ForInformationalPurposesOnlyTermsofthisPresentation