Figure 1.5.1 Sample 3GL COBOL Program



Similar documents
Chapter 1. Database Systems. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

CC414 Database Management Systems

Chapter 1 - Database Systems

Introduction. Chapter 1. Introducing the Database. Data vs. Information

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

B.Com(Computers) II Year RELATIONAL DATABASE MANAGEMENT SYSTEM Unit- I

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:


VBA and Databases (see Chapter 14 )

2. Basic Relational Data Model

3 SOFTWARE AND PROGRAMMING LANGUAGES

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London Martin Paris Deen London

Configuration Management: An Object-Based Method Barbara Dumas

Improving database development. Recommendations for solving development problems using Red Gate tools

Types & Uses of Databases

DATABASE MANAGEMENT SYSTEMS

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

WHITEPAPER. Improving database development

Version Control Using Subversion. 12 May 2013 OSU CSE 1

Advantages of DBMS.

Normalization. Purpose of normalization Data redundancy Update anomalies Functional dependency Process of normalization

Module 1. Introduction to Software Engineering. Version 2 CSE IIT, Kharagpur

Introduction to Database Systems

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.

Data Hierarchy. Traditional File based Approach. Hierarchy of Data for a Computer-Based File

DATABASE DESIGN AND IMPLEMENTATION USING VISUAL BASIC

White Paper: 5GL RAD Development

D6 INFORMATION SYSTEMS DEVELOPMENT. SOLUTIONS & MARKING SCHEME. June 2013

Embedded SQL. Unit 5.1. Dr Gordon Russell, Napier University

Study Notes for DB Design and Management Exam 1 (Chapters 1-2-3) record A collection of related (logically connected) fields.

CSC408H Lecture Notes

Optimum Database Design: Using Normal Forms and Ensuring Data Integrity. by Patrick Crever, Relational Database Programmer, Synergex

DATABASE DESIGN: Normalization Exercises & Answers

its not in the manual

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

CONTENT STORE SURVIVAL GUIDE

Payroll Tax Rebate Scheme (Jobs Action Plan) Amendment (Fresh Start Support) Act 2014 No 78

æ A collection of interrelated and persistent data èusually referred to as the database èdbèè.

1 File Processing Systems

WHITE PAPER. Understanding Transporter Concepts

Objectives. Distributed Databases and Client/Server Architecture. Distributed Database. Data Fragmentation

Data Profiling and Mapping The Essential First Step in Data Migration and Integration Projects

Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases

Chapter 14. Programming and Languages. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Introduction. Introduction: Database management system. Introduction: DBS concepts & architecture. Introduction: DBS versus File system

White Paper. The integration of Formate and Alchemy

MICROSOFT PROJECT 2013 INTRODUCTION

How To Save Data On A Spreadsheet


Introducing the Database

Introduction: Database management system

Software Development Processes. Software Life-Cycle Models

Coverity White Paper. Effective Management of Static Analysis Vulnerabilities and Defects

DETAIL AUDIT PROGRAM Information Systems General Controls Review

Database and Data Mining Security

DESIGN, IMPLEMENTATION, AND MANAGEMENT. Carlos Coronel Steven Morris Peter Rob

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

CA Endevor Software Change Manager

- Eliminating redundant data - Ensuring data dependencies makes sense. ie:- data is stored logically

Answers to Review Questions

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

Business Intelligence Solutions: Data Warehouse versus Live Data Reporting

PES INSTITUTE OF TECHNOLOGY B.E 5TH SEMESTER (AUTONOMOUS) - PROVISIONAL RESULTS JANUARY 2015 COMPUTER SCIENCE AND ENGINEERING BRANCH

Sequential Query Language Database Networking Using SQL

Software Development Processes. Software Life-Cycle Models. Process Models in Other Fields. CIS 422/522 Spring

Normalization. CIS 3730 Designing and Managing Data. J.G. Zheng Fall 2010

Week 1 Part 1: An Introduction to Database Systems. Databases and DBMSs. Why Use a DBMS? Why Study Databases??

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

Foundations of Information Management

Harnessing the Power of Big Data for Real-Time IT: Sumo Logic Log Management and Analytics Service

ECS 165A: Introduction to Database Systems

How To Improve Performance In A Database

Adaptive Automated GUI Testing Producing Test Frameworks to Withstand Change

How to Define Authorizations

Learning from Our Mistakes with Defect Causal Analysis. April Copyright 2001, Software Productivity Consortium NFP, Inc. All rights reserved.

FIREWALL CLEANUP WHITE PAPER

Encumbrance Journal Entries for Escrowed Amounts

Manish Patel. Maximizing SAP. ERP Financials Accounts Receivable. Bonn Boston

Developing Solutions for Microsoft Dynamics AX in a Shared AOS Development Environment

Automated Testing Best Practices

Firewall Policy Change-Impact Analysis

IT2305 Database Systems I (Compulsory)

Scheduling Software User s Guide

Chapter 3: Data Mining Driven Learning Apprentice System for Medical Billing Compliance

bitmedia Access 2007 Basics Entry test Database Basics Entry test Basic database terms What is Access 2007? Tables and indexes

Report Writer's Guide Release 14.1

Criticality of Schedule Constraints Classification and Identification Qui T. Nguyen 1 and David K. H. Chua 2

Chapter 7: Software Engineering

Systems Engineering and Integration for the NSG (SEIN) SharePoint Developer

Chapter 13: Program Development and Programming Languages

Transcription:

Topic 1.5: Problems with File System Data Management Every task requires extensive programming in a third-generation language (3GL) Programmer must specify task and how it must be done which require much programming efforts. Figure 1.5.1 shows a sample 3GL COBOL program. Modern databases use fourth-generation language (4GL) Allows user to specify what must be done without specifying how it is to be done, which require less programming efforts 21. SELECT CUSTOMER-DATA-FILE 22. ASSIGN TO "C:\DATAFILES\CUSTOMER.DAT" 23. ORGANIZATION IS RECORD SEQUENTIAL 24. DATA DIVISON 25. FILE SECTION 26. FD CUSTOMER-DATA-FILE 27. LABEL RECORDS ARE STANDARD. 28. 01 CUST-DATA-REC. 29. 05 C_NAME PIC X(20). 30. 05 C_PHONE PIC X(10). 31. 05 C_ADDRESS PIC X(30). 32. 05 C_ZIP PIC X(5). 33. 05 A_NAME PIC X(20). 34. 05 A_PHONE PIC X(10). 35. 05 TP PIC X(2). 36. 05 AMT PIC 9(3)V99 37. 05 REN PICPIC X(11). Figure 1.5.1 Sample 3GL COBOL Program Programming in 3GL Time-consuming, high-level activity Programmer must be familiar with physical file structure As system becomes complex, access paths become difficult to manage and tend to produce malfunctions Complex coding establishes precise location of files and system components and data characteristics Ad hoc queries are impossible Writing programs to design new reports is time consuming As number of files increases, system administration becomes difficult Making changes in existing file structure is difficult File structure changes require modifications in all programs that use data in that file Modifications are likely to produce errors, requiring additional time to debug the program Security features hard to program and therefore often omitted

Structural and Data Dependence Structural dependence Access to a file depends on its structure. That is if a file structure changes means all programs accessing this file will have to change to access the changed file successfully. The reason for this is that the file structure is coded within the program. See the sample COBOL program in Figure 1.5.1. If the file structure was not coded in the body of the program, the program becomes independent from the file structure changes. Data dependence Changes in a file's data characteristics (fields' data type or length) affect program s ability to access data in that file. That is if any of a file data characteristics change means all programs accessing this file's data will have to change to access the changed file successfully. The reason for this is that the file data characteristics are coded within the program. See the sample COBOL program in Figure 1.5.1. If the file data characteristics were not coded in the body of the program, the program becomes independent from the file structure changes. Logical data format How a human being views the data Physical data format How the computer sees the data Field Definitions and Naming Conventions Flexible record definition anticipates reporting requirements by breaking up fields into their component parts. For example, if the city and country were integrated within the address field, then it will be harder to generate reports by the City or by the Country. Then is better to separate the City and Country fields from the Address field, see Table 1.2 below.

Sample Customer File Fields Data Redundancy Data redundancy results in data inconsistency Data inconsistency happens when different and conflicting versions of the same data appear in different places in the same file or in multiple files Errors more likely to occur when complex entries are made in several different files and recur frequently in one or more files Data anomalies develop when required changes in redundant data are not made successfully Data Anomalies Modification anomalies Occur when changes must be made to existing records. For example, see Figure 1.3 below, if Agent Leah F. Hahn has new phone number, that new number must be applied (entered) in each of the CUSTOMER file records in which Ms. Hahn's phone number is shown. In this case only three changes in three records must be made. However, in a large scale system, such changes might occur in hundreds or even thousands of records. So it is clear, the potential for data inconsistencies in the file system is great. Insertion anomalies

Occur when entering new records. For example, to add new customer record in the CUSTOMER file shown in Figure 1.3 below, we must also add the corresponding agent data. If we add several hundred new customer records, we must also enter several hundred agent names and telephone numbers. Deletion anomalies Occur when deleting records. For example, if Agent Alex B. Alby quits and is deleted from the payroll, all the customers, who were associated with the Agent Alex B. Alby, in the CUSTOMER file shown in Figure 1.3 below, will refer to a nonexistent Agent. To resolve this problem, all customer records in which the Agent Alex B. Alby's name and phone number appear must be modified. So obviously, from the above data anomalies problems, the potential for data inconsistencies in the file system is great Database vs. File System It is clear from the previous description of the problems inherent in file systems make using a database system desirable Comparison between the old File System against the advanced Database Management System

File system Many separate and unrelated files Database Logically related data stored in a single logical data repository Figure 1.6 shows a Comparison between the old File System against the advanced Database Management System Contrasting Database and File Systems Concept Check List and describe three problems in the file system data management environment? Explain the three data anomalies problems in file systems? Explain why the database environment was more desirable for managing data?