Copyright 2007, Information Builders. Slide 1 Modify Internals Cesare Petrizio Information Builders.

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

Operating Systems File Management.
Lectures on File Management
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Copyright 2007, Information Builders. Slide 1 Walter Brengel Information Builders New Jersey User Forum – June 2008 FOCUS to SQL DeMystified.
3/5/2009Computer systems1 Analyzing System Using Data Dictionaries Computer System: 1. Data Dictionary 2. Data Dictionary Categories 3. Creating Data Dictionary.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
File Management Systems
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 12 File Management
Introduction to Structured Query Language (SQL)
Chapter 12 File Management
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
Physical design. Stage 6 - Physical Design Retrieve the target physical environment Create physical data design Create function component implementation.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
File Management Chapter 12.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Administration etc.. What is this ? This section is devoted to those bits that I could not find another home for… Again these may be useless, but humour.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Lesson 17 Getting Started with Access Essentials
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Copyright 2007, Information Builders. Slide 1 Enhancing Maintain Applications with HTML Mark Derwin and Mark Rawls Information Builders.
Indexed and Relative File Processing
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
1 File Management Chapter File Management n File management system consists of system utility programs that run as privileged applications n Concerned.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
1 PL\SQL Dev Templates. 2 TEMPLATE DEFINITION Whenever you create a new program unit, its initial contents are based upon a template which contains pre-defined.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Objective Demonstrate basic database concepts and functions.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 9 Designing Databases.
Session 1 Module 1: Introduction to Data Integrity
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
JOIN Syntax and Techniques Noreen Redden Information Builders Copyright 2011, Information Builders. Slide 1.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
Copyright 2007, Information Builders. Slide 1 Cesare Petrizio June, 2008 The File Is Too Large.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
In this session, you will learn to: Create and manage views Implement a full-text search Implement batches Objectives.
Module 11: File Structure
Building Configurable Forms
Computer Architecture
Chapter 8 Advanced SQL.
Creating Additional Input Items
Presentation transcript:

Copyright 2007, Information Builders. Slide 1 Modify Internals Cesare Petrizio Information Builders

Copyright 2007, Information Builders. Slide 2

Copyright 2007, Information Builders. Slide 3 Agenda  MODIFY Internals  Database Creation  Analysis Phase  Transaction Processor  Transaction Processor Activation  Database Processor  Database Actions  Database Physical Structure  Limits  Database Logical Structure  File Directory Table  File Control Block  Pointers  MODIFY Overview

FOCUS Database  CREATE FILE filename  Initial MODIFY FILE filename  REBUILD/REBUILD or REBUILD/REORG  HOLD FORMAT FOCUS A FOCUS Database is established by:

FOCUS Database  MVS/TSO  Database to be used in SU process  Database to be used as part of MAINTAIN or COMBINE CREATE FILE is required for a FOCUS (or FUSION) database if:

Copyright 2007, Information Builders. Slide 6 MODIFY Internals Transaction Processor Analysis File Transactions Log Files Screen Transactions Database Processor Database BINs

Copyright 2007, Information Builders. Slide 7 Analysis n Open and CHECK Master File Descriptions n Verify DBA access to file(s) n Determine I/O access modules required n Check DBA and set up access restrictions at SEGMENT and FIELD levels. n Read and parse the FOCEXEC n Establish VALIDATE statements for VALUE restrictions n Set up memory for Scratch Pad Area if required n Establish DATREC and LINREC n Establish Case Processing tables n If COMPILE, create FOCCOMP and exit.

Copyright 2007, Information Builders. Slide 8 MODIFY Internals Analysis Work Areas  DATREC – DATabase-RECord  Retrieval of Database Values  Maximum size – 32K  LINREC – LINe RECord  Retrieval of Transaction Values  Maximum size – 32K  COMPUTE and VALIDATE fields are extensions to the transaction

Copyright 2007, Information Builders. Slide 9 MODIFY Internals Analysis Work Areas  RECDIS - RECord Description  Field Activation Table  Maximum 3072 fields  CRTBUF – CRTform BUFfer  Last display of CRTFORM  Divided into Screens

Copyright 2007, Information Builders. Slide 10 MODIFY Internals Analysis - Work Areas  SEGACT – SEGment ACTivation  Segment Activation Table  Established per CASE  Bits to control  Activation  Move to DATREC  MATCH/NOMATCH  SEGTYPE and MATCH logic

Copyright 2007, Information Builders. Slide 11 MODIFY Internals Analysis – Special Conditions  SEGACT- SEGment ACTivation  COMBINE – SYSTEM99 root segment of each database is constructed in FOCSORT  Indexed MODIFY –  Index is treated as root segment  If the index is not the key of its segment, key(s) must also be MATCHed  No access to segments higher in the hierarchy  UPDATE or REJECT only at entry level (no INCLUDE OR DELETE)  Full access to MODIFY subcommands at lower level segments

Copyright 2007, Information Builders. Slide 12 MODIFY Internals Analysis - Work Areas  SPA (Scratch Pad Area)  Width: (Storage Length of fields * 2) + 1  # Rows: Max of REPEAT n Default 5 rows Rounded up to nearest 1K  Fields:  Every field mentioned in any HOLD REPEAT  Every field mentioned in any GETHOLD REPEAT  Every field mentioned in CRTFORM field(index)

Copyright 2007, Information Builders. Slide 13 MODIFY Internals Order of Processing  No Cases  Transaction Subroutine  Non-Position Related Commands  MATCH/NEXT to ALL segments  TOP CASE only  Transaction Subroutine  Non-Position Related Commands  MATCH/NEXT to segments specified  Other Cases  Non-position Related Commands in order coded  MATCH/NEXT to segments specified  If MATCH/NEXT is coded, all GOTO commands are considered ON MATCH/NOMATCH GOTO …

MODIFY Internals Order of Processing - MODIFY Premise Action COMPUTE field/format = ; YY COMPUTE/VALIDATE field/format = expression YYYY Same name and format as other field YNYYNN TOP CASE YNYN GOTO/IF... GOTO/PERFORM YY MATCH/NEXT prior in case YN Non-Positional TYPE/COMPUTE/REPEAT... Y Analysis Phase, extend LINREC YYY After first transaction subcommand YY ON MATCH/NOMATCH... Y Prior to MATCH/NEXT commands YYY Order coded Y

Copyright 2007, Information Builders. Slide 15 MODIFY Internals Default MATCH/NOMATCH Actions  MATCH * (MATCH all active fields)  MATCH * KEYS (MATCH all active keys)  MATCH requires a MATCH to all keys:  WARNING – MATCH ASSUMED  Default ON NOMATCH - INCLUDE  Default ON MATCH - REJECT

Copyright 2007, Information Builders. Slide 16 MODIFY Internals Transaction Processor Analysis File Transactions Log Files Screen Transactions Database Processor Database BINs

Copyright 2007, Information Builders. Slide 17 MODIFY Internals Transaction Processing  FREEFORM  Default Transaction Type  Comma-delimited  Maximum LRECL 256  Value Carry-over  Comma Dollar (,$) to end transaction MODIFY FILE CAR DATA ON CCARS END ENGLAND,JAGUAR,V12XKE AUTO,SEDAN,$ CAR=JENSEN,$

Copyright 2007, Information Builders. Slide 18 MODIFY Internals Transaction Processing  PROMPT  Creates comma-delimited file  PROMPT field field field SEG.field  END in response to prompt terminates transaction processing  PROMPT COUNTRY 5(CAR MODEL)  Converts to FREEFORM MODIFY FILE CAR PROMPT COUNTRY CAR MODEL MATCH COUNTRY ON NOMATCH INCLUDE DATA END

Copyright 2007, Information Builders. Slide 19 MODIFY Internals Transaction Processing  FIXFORM  FIXFORM field/format field/format field/Cn Xn  Xn is ignored at the end of any FIXFORM except in TOP CASE  Default format type is A (alpha)  Upon reading the transaction, values are moved to LINREC and with necessary conversion.  Invalid format gives FORMAT rejection  FORMAT rejection if not in ACCEPT list.  Read is performed:  TOP CASE  FIXFORM ON  When required to fulfill request

Copyright 2007, Information Builders. Slide 20 MODIFY Internals Transaction Processing  FIXFORM FROM mastername  Mastername must describe a single segment SUFFIX = FIX FILE  Actual is used to indicate the input format  All fields are conditional  FIELDNAME matches to FIELDNAME or ALIAS  Used in HOLD FORMAT FOCUS FOC$HOLD.FEX MODIFY FILE newfile FIXFORM FROM FOC$HOLD DATA ON FOC$HOLD END

Copyright 2007, Information Builders. Slide 21 MODIFY Internals Transaction Processing  CRTFORM {LINE n} {UPPER/LOWER} {TYPE n} {WIDTH n}  Default Width – 78 columns  Default Height – TYPE lines  Non-conditional field  Blank is acceptable value and will update database  <field Conditional field  Blank is considered not present.  Creates FIXFORM transaction

Copyright 2007, Information Builders. Slide 22 MODIFY Internals CRTFORM – Source of D., T. fields Henry’s Famous Table Database FieldRe-COMPUTECOMPUTE Field MATCH DATREC Active? LINREC NOMATCH Defaults Not Active DATREC

MODIFY Internals Source of Fields Values on CRTFORM Premise Source INVALID Y CRTFORM NOCLEAR Y Index > HOLDCOUNT Y Y D.Field or T.field YYYYY Database field YYNYY Compute NNYYY Field ACTIVE YN MATCH YN DATREC YY LINREC YY CRTBUF YY Defaults YY Blanks Y

Copyright 2007, Information Builders. Slide 24 MODIFY Internals Transaction Processor Analysis File Transactions Log Files Screen Transactions Database Processor Database BINs Activation

Copyright 2007, Information Builders. Slide 25 MODIFY Internals Activation  FIELD Activation  Controls UPDATE  Field is ACTIVE When :  Present on a Transaction  Left side of a COMPUTE  ACTIVATE issued  Field is Deactivated When:  UPDATE is performed  INCLUDE / DELETE at that level  Navigation to TOP Case  DEACTIVATE issued

Copyright 2007, Information Builders. Slide 26 MODIFY Internals Activation  SEGMENT Activation  Controls  MATCH  INCLUDE  Any field on SEGMENT is Activated  Segments lower in the hierarchy activated  Segment is Deactivated When:  INCLUDE / DELETE at that level  Navigation to TOP Case  Movement to different segment instance,same level.  DEACTIVATE issue

MODIFY Internals FIELD and SEGMENT Activation FIXFORM field/format or CRTFORM Y FIXFORM field/Cformat or CRTFORM <fieldYY Field value = blankNYNYN CRTFORM or Y CRTFORM <field or <T.fieldYYY Transaction value = database valueNY COMPUTE field= expression;Y ACTIVATE fieldYY Field already ACTIVEYN Field ActivatedYYYYYYY SEGMENT ActivatedYYYYYYY Value Moved to LINRECYYYYY Default Moved to LINRECYYY DATREC Value moved to LINRECY

MODIFY Internals FIELD and SEGMENT Deactivation INCLUDEY UPDATEYY DELETEY MOVE TO DIFFERENT SEGMENT INSTANCEY DEACTIVATEY DEACTIVATE RETAINY TOP CASEY All fields on SEGMENT DeactivatedY Field DeactivatedYYYYYY SEGMENT DeactivatedYYYYY Default Values to LINRECY

Copyright 2007, Information Builders. Slide 29 MODIFY Internals Transaction Processor Analysis File Transactions Log Files Screen Transactions Database Processor Database BINs

Copyright 2007, Information Builders. Slide 30 MODIFY Internals MATCH  MATCH keyfield(s)  Using INDEX  SEGTYPE = S1 or SH1  Root Segment  CRTFORM or Trans value < last trans  Beginning of Chain  SEGTYPE = ‘ ‘  SEGTYPE = S[H]n,  Trans Value < last trans  Current Position  SEGTYPE = S0  SEGTYPE = S[H]n  Trans Value > last trans

Copyright 2007, Information Builders. Slide 31 MODIFY Internals NOMATCH  SEGTYPE = S[H]n  Prior to searched value  SEGTYPE = S0  End-of-Chain  SEGTYPE = blank  End-of-Chain  Explicit MODIFY through index MODIFY FILE fn.index  NO position at NOMATCH

MODIFY Internals MATCH SEGTYPE = S[H]1YYY SEGTYPE = S0Y SEGTYPE = blankY SEGTYPE = S[H]nYYY Top SegmentYYY Root key indexedYYY CRTFORMYNN Current Transaction : last Trans<><>= Start Beginning of ChainYY Start Current PositionYYY Use IndexYY NOMATCH at END-OF-CHAINYY NOMATCH Prior to searched valueYYYYY

Copyright 2007, Information Builders. Slide 33 MODIFY Internals Movement to DATREC - local mode  MATCH keys  ON MATCH CONTINUE  No action (“passing through”)  ON MATCH COMPUTE/CRTFORM/VALIDATE  Move segment instance to DATREC  Take required action  MATCH WITH-UNIQUES key  Retrieves host instance + ALL unique child instances  ON MATCH COMPUTE/CRTFORM/VALIDATE  Unique segments are considered “logical extensions of the parent”

Copyright 2007, Information Builders. Slide 34 MODIFY Internals Movement to DATREC  NEXT field  Entire instance moved to DATREC  Key fields are copied to LINREC  COMPUTE/VALIDATE RETURN/I1 = FIND (val IN filename)  Index page read into BINs (if necessary)  Only RETURN is populated (1 or 0)  COMPUTE/VALIDATE RETURN = LOOKUP([SEG.crfield] condition);  Crfield - JOIN segment or [DKU/KU]  JOIN and COMBINE are mutually exclusive  Value for field(s) moved to DATREC and LINREC  Crfield value taken from LINREC

MODIFY Internals MATCH MATCHYYY SUYNNNY ON MATCH COMPUTEY NEXTY FINDY LOOKUPYY MOVE FROM DATABASE TO BINSYYYYY MOVE FROM BINS TO DATRECYYYYY MOVE INDEX PAGE TO BINSY SEND DATREC TO USERYY MOVE KEYS FROM DATREC TO LINRECYYY MOVE NON-KEYS FROM DATREC TO LINRECYY

Copyright 2007, Information Builders. Slide 36 MODIFY Internals Transaction Processor Analysis File Transactions Log Files Screen Transactions Database Processor Database BINs Database actions

Copyright 2007, Information Builders. Slide 37 MODIFY Internals Database Actions  INCLUDE  Values moved from LINREC To BINS  All Active Child Segments INCLUDED  Non-SU deleted space may be re-used  UPDATE  Specified ACTIVE fields are updated from LINREC to BINS  MATCH WITH-UNIQUES UPDATE might be INCLUDE of UNIQUE segment  DELETE  Segment and all descendant segments are deleted

Copyright 2007, Information Builders. Slide 38 MODIFY Internals INDEX Actions  INCLUDE  New value and address are moved to index page  Full index pages require index page split  UPDATE  Index searched and old value deleted  New value and address moved to index page  Full index pages require index page split  DELETE  Index searched and old value deleted

Copyright 2007, Information Builders. Slide 39 MODIFY Internals Transaction Counter  Transaction Counter is incremented in first PHYSICAL case with data collection.  CHECK nnnn  After nnnn transactions, COMMIT is issued  Default CHECK (no COMMIT specified in MODIFY)  LOCAL  CHECK 10 CRTFORM  CHECK 1,000 FIXFORM  SU  CHECK 1 CRTFORM  CHECK 1,000 FIXFORM  SU – CHECK saves all users changes

Copyright 2007, Information Builders. Slide 40 MODIFY Internals Transaction Counter  Changes are made into BINs  SU and COMMIT  Local User changes to Local Bins  SU, not COMMIT  Local User changes sent to Sink and sink BINs  “Forced CHECK”  Move from BINs to Database  If SHADOW is ON for that database, move to shadow pages.  CHECK or COMMIT  Move any additional pages from BINS to database  If SHADOW = ON, update SHADOW directory

Copyright 2007, Information Builders. Slide 41 QUESTIONS Thanks for Coming