Chapter 11 Data Validation. Question Should your program assume the data is correct, or should your program edit the data to ensure it is correct?

Slides:



Advertisements
Similar presentations
Chapter 6 Computer Assisted Audit Tools and Techniques
Advertisements

Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Programming Logic and Design Sixth Edition
PowerPoint Presentation: Richard H. Baum, Ph.D. DeVry Institute of Technology 9th Edition Structured COBOL Programming Nancy Stern Hofstra University Robert.
Objectives In this chapter, you will learn about:
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
Processing Integrity and Availability Controls
Guide To UNIX Using Linux Third Edition
PowerPoint Presentation by Charlie Cook Copyright © 2004 South-Western. All rights reserved. Chapter 9 Controlling Information Systems: Process Controls.
General Ledger and Reporting System
Processing Integrity and Availability Controls
Chapter 10 Information Systems Controls for System Reliability—Part 3: Processing Integrity and Availability Copyright © 2012 Pearson Education, Inc.
What Are File Maintenance Techniques and Validation Techniques?
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Advanced Shell Programming. 2 Objectives Use techniques to ensure a script is employing the correct shell Set the default shell Configure Bash login and.
Topics Covered: Data preparation Data preparation Data capturing Data capturing Data verification and validation Data verification and validation Data.
Structured COBOL Programming, Stern & Stern, 9th edition
Computer Based Information Systems Control UAA – ACCT 316 – Fall 2003 Accounting Information Systems Dr. Fred Barbee.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Encoding, Validation and Verification Chapter 1. Introduction This presentation covers the following: – Data encoding – Data validation – Data verification.
Chapter 13 Sequential File Processing. Master Files Set of files used to store companies data in areas like payroll, inventory Usually processed by batch.
CNG 140 C Programming (Lecture set 9) Spring Chapter 9 Character Strings.
Copyright © 2007 Pearson Education Canada 1 Chapter 13: Audit of the Sales and Collection Cycle: Tests of Controls.
 Once the system has been installed it will be monitored to check whether it is working correctly. Sometimes problems with a system will not be found.
Objectives of Control The objectives of control are:  To ensure that all data are processed  To preserve the integrity of maintained data  To detect,
The DATA DIVISION Chapter 3. COBOL Data Organization Field - group of characters forming a meaningful unit or basic fact –Characters in a name or digits.
System Analysis and Design
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 5 Arrays.
Programming Logic and Design Sixth Edition Chapter 5 Looping.
Edit Programs Please use speaker notes for additional information. Example: payedit.cbl payedit.cbl.
13-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Sequential Files Chapter 13. Master Files Set of files used to store companies data in areas like payroll, inventory Set of files used to store companies.
9-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout.
Chapter 9 Controlling Information Systems: Application Controls.
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 4 Looping.
11- 1 Chapter 11.  Avoiding Logic Errors by Validating Input  What to Do If Input Errors Occur  Global Considerations in COBOL  When Data Should Be.
Chapter 8 – Data Validation
Week 1 Theory 2 B usiness I nformation S ystems Batch Processing Assignment 6 - Batch Processing 1 Batch Processing Method.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
13-1 Sequential File Processing Chapter Chapter Contents Overview of Sequential File Processing Sequential File Updating - Creating a New Master.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Chapter 10: Using Menus and Validating Input Programming Logic and Design, Third Edition Comprehensive.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Data Validation.
Data Validation 2 When designing a workbook, a good design should consider who is entering the data and how important it is that the data being entered.
AS Level ICT Data entry: Creating validation checks.
13- 1 Chapter 13.  Overview of Sequential File Processing  Sequential File Updating - Creating a New Master File  Validity Checking in Update Procedures.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
Chapter 9: Completing the Basics. In this chapter, you will learn about: – Exception handling – Exceptions and file checking – The string class – Character.
10 Chapter 101 Using Menus and Validating Input Programming Logic and Design, Second Edition, Comprehensive 10.
11- 1 Chapter 11.  Avoiding Logic Errors by Validating Input  What to Do If Input Errors Occur  Global Considerations in COBOL  When Data Should Be.
1 CA202 Spreadsheet Application Focusing on Specific Data using Filters Lecture # 5.
A FIRST BOOK OF C++ CHAPTER 14 THE STRING CLASS AND EXCEPTION HANDLING.
Chapter 6: Looping. Objectives Learn about the loop structure Create while loops Use shortcut arithmetic operators Create for loops Create do…while loops.
Sequential Processing to Update a File Please use speaker notes for additional information!
Programming Logic and Design Fourth Edition, Comprehensive Chapter 10 Using Menus and Validating Input.
Potential NEALP candidates Where is the data input site?
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Designing and Debugging Batch and Interactive COBOL Programs
Chapter 3 The DATA DIVISION.
G063 - Testing.
Chapter 14 Sorting and Merging.
Chapter 7: Input Validation
Chapter 10: Using Menus and Validating Input
CHAPTER 6 Testing and Debugging.
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

Chapter 11 Data Validation

Question Should your program assume the data is correct, or should your program edit the data to ensure it is correct?

Why Input Must Be Validated Risk of data entry errors is high –Large volume of data entered –Human error keying in data Invalid input leads to inaccurate output –For example, salary reported incorrectly if entered as instead of Input error can cause program interrupt –For example, spaces entered for numeric field used in arithmetic operation

Data Validation Techniques Routines to identify various types of input errors Error modules to handle each error that occurs

Data Validation Techniques 1.Test fields for correct format NUMERIC or ALPHABETIC Sign test 2.Checking for missing data 3.INSPECT statement 4.Testing for reasonableness

Checking for missing data Check key fields if they must contain data If Soc-Sec-No = Spaces Perform 900-Err-Rtn End-If Example

INSPECT Statement Useful for validity checking as well as other purposes Two main functions –To count number of occurrences of given character in field –To replace specific occurrences of given character with another character

INSPECT … TALLYING Move Zeros To Ct1, Ct2, Ct3 Inspect X1 Tallying Ct1 For All Spaces Inspect X2 Tallying Ct2 For Characters Inspect X3 Tallying Ct3 For Leading Zeros FieldsResults X1 = bb82bCt1 = 3 X2 = AB32CCt2 = 5 X3 = 00060Ct3 = 3 Examples

INSPECT … REPLACING To replace specified occurrences of a given character with another

INSPECT … REPLACING Inspect Date-In Replacing All '-' By '/' Inspect SSNo Replacing All Spaces By '-' FieldBeforeAfter Date-In /17/02 SSNo Examples

Testing for Reasonableness Use after verifying that numeric fields contain numeric data Range test - check that field is within established lower and upper bounds Limit test - check that field does not exceed defined upper limit

Actions If Input Errors Occur 1.Print error record displaying key field, field in error and error message 2.Stop the run to preserve data integrity 3.Partially process or bypass erroneous records 4.Stop the run if number of errors exceeds predetermined limit

Actions If Input Errors Occur 5.Use switch or field to indicate when record contains error –Initialize field to 'N' for no errors –Set field to 'Y' anytime an error occurs –Process record as valid only if switch field still 'N' after all validation checks

Actions If Input Errors Occur 6.Print count totals and compare to manual counts –Print count of all records processed –Print count of all errors encountered –Print batch totals or count of all records within specific groups or batches