Indexed Files.. Creating an Indexed File $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. CreateIndexedFromSeq. * Creates an indexed file.

Slides:



Advertisements
Similar presentations
DT266/2 Information Systems COBOL Revision. Chapters 1 & 2 Hutty & Spence Divisions of a Cobol Program Identification Division Program-ID. Environment.
Advertisements

Cobol application using ODBC or File processing Vandana Janeja CIS 365 With COBOL OR PowerCobol.
Module 7 Sorting.  The StudentFile is a sequential file sequenced upon ascending StudentId.  How to sort the file by StudentId? DATA DIVISION. FILE.
Files  File organisation and usage A record is a group of logically related fields A file is a group of logically related records Files are used to store.
BY: JOSHUA THOMAS IGNATIUS TOWERS COBOL. Overview What is COBOL History Design Implementations What did it do Program structure Data types Syntax Sample.
Chapter 15 Indexed Sequential Files. Disk File Organization File is collection of records Three major ways records stored or organized on disk - Sequential.
Screen Section Please use speaker notes for additional information!
Processing with VSAM Files Please use speaker notes for additional information!
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
Introduction to Direct Access Files.. Sequential Files - Adding a Record Rec085 Rec300Rec150Rec005Rec090Rec045Rec100Rec001Rec325^Z Ordered Rec001Rec005Rec045Rec090Rec100Rec150Rec300Rec325^Z.
Two and three dimension tables Please use speaker notes for additional information!
Any Questions!. Agenda Fun with Functions –how to get the system date Condition Names INDARA and SI Iteration Logical Files Positioning the file pointer.
VSAM KSDS and COBOL Department of Computer Science Northern Illinois University August 2005 Some of the illustrations are from VSAM: Access Method Services.
15-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)
Chapter 15 Relative Files.  File organization that converts key field to actual disk address to find location of record No need to look up disk address.
Relative Files.. Creating a Relative File $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. CreateRelativeFromSeq. * Creates a Relative file.
Structured COBOL Programming, Stern & Stern, 9th edition
4-1 Coding Complete COBOL Programs: The PROCEDURE DIVISION Chapter 4.
4-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)
4-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)
1 Chapter 4. To familiarize you with methods used to 1. Access input and output files 2. Read data from an input file 3. Perform simple move operations.
Chapter To familiarize you with  Why COBOL is a popular business-oriented language.  Programming practices and techniques  History of COBOL.
Introduction to COBOL. COBOL  COBOL is an acronym which stands for Common Business Oriented Language.  The name indicates the target area of COBOL applications.
Modifications to program Addda.cbl Please use speaker notes for additional information!
History COBOL (Common Business Oriented Language) was one of the earliest high-level programming languages. COBOL was first proposed in 1959 by the Conference.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
PowerPoint Presentation: Richard H. Baum, Ph.D. DeVry Institute of Technology 9th Edition Structured COBOL Programming Nancy Stern Hofstra University Robert.
COBOL Cobol is one of the most robust language in the software field, so far Cobol turned 50, in 2009 Cobol has stood the test of time Common Business.
Programming in COBOL-85 For IBM Mainframe System 390 Jyothi Sridhar Kini E&R, Infosys Mail-id: Phone:
Totals on the Screen Please use speaker notes for additional information!
BIS 1753 Introduction to Computer Programming 1. Computer Program A set of instructions that enables a computer to process data Also called software Two.
3-1 Chapter 3. To familiarize you with  Ways in which data is organized in COBOL  Rules for forming data-names  Defining input and output files in.
1 Interactive vs Batch Programs Cobol suited for developing both types of programs Interactive programs Accept input data from keyboard Input data processed.
Printing on power systems Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File.
Array - adding to array at run time Please see speaker notes for additional information!
Indexed Files continued. Figure 17.1 Sequential Update OLD MASTER TRANSACTION NEW MASTER ERROR MESSAGES UPDATE PROGRAM.
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
Indexed and Relative File Processing
1 Chapter – 12 Table Lookups Table Codes –Expanded Values –Types of Codes Numeric Alphabetic Alphanumeric.
1 The Procedure Division Chapter 4. 2 Main Two Sections File Section –Used to define files and record formats –Field names within records Working Storage.
Statement Syntax1 THE SELECT STATEMENT Purpose: designates a file and points to its physical location Syntax Definition : SELECT file-name-1 ASSIGN TO.
CPSC3111/CISM3111 COBOL Structured COBOL Programming Text: murach’s structured COBOL Authors: Murach, Prince, Menendez.
VSAM Alternate Indexes Department of Computer Science Northern Illinois University August 2005.
Explanation of SAMPLEIF (if88in1.cbl or if88in1.html) Please use speaker notes for additional information!
Chapter 3 Decision Making. What is IF? The primary method of changing the flow of a program is by making decisions using the IF verb. The following example.
Any Questions!. Test Coming Up! Agenda Printing with Externally Described Printer Files Arrays.
COBOL Screens Please use speaker notes for additional information!
Structured COBOL Programming, Stern & Stern, 9th Edition CHAPTER 2 Cobol Language Fundamentals.
1 Chapter 5 – The Procedure Division File handling statements –OPEN statement Initiates processing for a file Input Output Each file opened must have been.
Sort and Merge.  The StudentFile is a sequential file sequenced upon ascending StudentId.  Write a program to display the number of students taking.
PowerPoint Presentation: Richard H. Baum, Ph.D. DeVry Institute of Technology 9th Edition Structured COBOL Programming Nancy Stern Hofstra University Robert.
Any Questions!. Agenda Fun with Functions –how to get the system date –How to get the next service date INDARA and SI Condition Names Iteration Logical.
IBM-Mainframes COBOL Class-1. Background and History  COBOL is an acronym for: Common Business Oriented Language  COBOL was developed in 1959 by the.
This is It! It’s been a pleasure! Final Exam – format True / false 5 Multiple choice 5 Short answers10 Data manipulation10 SQL 3 Array’s12 File processing25.
Analysis of SAMPLE1.CBL Please check speaker notes for additional information!
Chapter 4 PROCEDURE DIVISION. Paragraphs PROCEDURE DIVISION divided into paragraphs Each is independent module or routine Made up of series of instructions.
Any Questions!. Agenda Fun with Functions Externally Described Files Condition Names Iteration Logical Files Random Reads.
The PERFORM. The PERFORM Verb  Iteration is an important programming construct. We use iteration when we need to repeat the same instructions over and.
VSAM ESDS and RRDS Department of Computer Science Northern Illinois University September 2005 Some of the illustrations are from VSAM: Access Method Services.
Week 2/3 - 2nd Lecture Intro to COBOL Programming Defining Files and Processing Data.
371 Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout John.
Random update Please use speaker notes for additional information!
Introduction to Sequential Files. COBOL's forte  COBOL is generally used in situations where the volume of data to be processed is large.  These systems.
General Introduction Algorithms. Let’s write a program  A program is a collection of statements written in a language the computer understands.  A computer.
Any Questions?.
Agenda Test next Week! SI or no SI? File Update Techniques – Review.
Programming in COBOL-85 For IBM Mainframe System 390
Indexed File Processing
Relative Files..
Presentation transcript:

Indexed Files.

Creating an Indexed File $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. CreateIndexedFromSeq. * Creates an indexed file from a sequential file. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS RANDOM RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. SELECT SeqVideoFile ASSIGN TO "INVIDEO.DAT". DATA DIVISION. FILE SECTION. FD VideoFile. 01 VideoRecord. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 VideoSupplierCode PIC 99. FD SeqVideoFile. 01 SeqVideoRecord. 88 EndOfFile VALUE HIGH-VALUES. 02 SeqVideoCode PIC 9(5). 02 SeqVideoTitle PIC X(40). 02 SeqVideoSupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2). $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. CreateIndexedFromSeq. * Creates an indexed file from a sequential file. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS RANDOM RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. SELECT SeqVideoFile ASSIGN TO "INVIDEO.DAT". DATA DIVISION. FILE SECTION. FD VideoFile. 01 VideoRecord. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 VideoSupplierCode PIC 99. FD SeqVideoFile. 01 SeqVideoRecord. 88 EndOfFile VALUE HIGH-VALUES. 02 SeqVideoCode PIC 9(5). 02 SeqVideoTitle PIC X(40). 02 SeqVideoSupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2).

PROCEDURE DIVISION. Begin. OPEN INPUT SeqVideoFile. OPEN OUTPUT VideoFile. READ SeqVideoFile AT END SET EndOfFile TO TRUE END-READ. PERFORM UNTIL EndOfFile WRITE VideoRecord FROM SeqVideoRecord INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-WRITE READ SeqVideoFile AT END SET EndOfFile TO TRUE END-READ END-PERFORM. CLOSE VideoFile, SeqVideoFile. STOP RUN. PROCEDURE DIVISION. Begin. OPEN INPUT SeqVideoFile. OPEN OUTPUT VideoFile. READ SeqVideoFile AT END SET EndOfFile TO TRUE END-READ. PERFORM UNTIL EndOfFile WRITE VideoRecord FROM SeqVideoRecord INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-WRITE READ SeqVideoFile AT END SET EndOfFile TO TRUE END-READ END-PERFORM. CLOSE VideoFile, SeqVideoFile. STOP RUN. Creating an Indexed File

Reading an Indexed File - Sequentially. $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. ReadingIndexedFile. * Sequential reading of an indexed file ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. DATA DIVISION. FILE SECTION. FD VideoFile 01 VideoRecord. 88 EndOfFile VALUE HIGH-VALUE. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 SupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2). 01 RequiredSequence PIC VideoCodeSequence VALUE VideoTitleSequence VALUE PrnVideoRecord. 02 PrnVideoCode PIC 9(5). 02 PrnVideoTitle PIC BBBBX(40). 02 PrnSupplierCode PIC BBBB99. $ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. ReadingIndexedFile. * Sequential reading of an indexed file ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. DATA DIVISION. FILE SECTION. FD VideoFile 01 VideoRecord. 88 EndOfFile VALUE HIGH-VALUE. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 SupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2). 01 RequiredSequence PIC VideoCodeSequence VALUE VideoTitleSequence VALUE PrnVideoRecord. 02 PrnVideoCode PIC 9(5). 02 PrnVideoTitle PIC BBBBX(40). 02 PrnSupplierCode PIC BBBB99.

Reading an Indexed File - Sequentially. PROCEDURE DIVISION. Begin. OPEN INPUT VideoFile. DISPLAY "Enter key : 1=VideoCode, 2=VideoTitle ->" WITH NO ADVANCING. ACCEPT RequiredSequence. IF VideoTitleSequence MOVE SPACES TO VideoTitle START VideoFile KEY IS GREATER THAN VideoTitle INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-START END-IF READ VideoFile NEXT RECORD AT END SET EndOfFile TO TRUE END-READ. PERFORM UNTIL EndOfFile MOVE VideoCode TO PrnVideoCode MOVE VideoTitle TO PrnVideoTitle MOVE SupplierCode TO PrnSupplierCode DISPLAY PrnVideoRecord READ VideoFile NEXT RECORD AT END SET EndOfFile TO TRUE END-READ END-PERFORM. CLOSE VideoFile. STOP RUN. PROCEDURE DIVISION. Begin. OPEN INPUT VideoFile. DISPLAY "Enter key : 1=VideoCode, 2=VideoTitle ->" WITH NO ADVANCING. ACCEPT RequiredSequence. IF VideoTitleSequence MOVE SPACES TO VideoTitle START VideoFile KEY IS GREATER THAN VideoTitle INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-START END-IF READ VideoFile NEXT RECORD AT END SET EndOfFile TO TRUE END-READ. PERFORM UNTIL EndOfFile MOVE VideoCode TO PrnVideoCode MOVE VideoTitle TO PrnVideoTitle MOVE SupplierCode TO PrnSupplierCode DISPLAY PrnVideoRecord READ VideoFile NEXT RECORD AT END SET EndOfFile TO TRUE END-READ END-PERFORM. CLOSE VideoFile. STOP RUN.

Reading an Indexed File - Sequentially. RUN OF INDEX-EG2.EXE USING VIDEOCODE KEY Enter key : 1=VideoCode, 2=VideoTitle -> FLIGHT OF THE CONDOR, THE PREDATOR LIVING EARTH, THE COMMANDO ROBOCOP LEOPARD HUNTS IN DARKNESS, A DIRTY DANCING COMPETENT CREW YACHT MASTER OPEN OCEAN SAILING PRINCESS BRIDE, THE LIFE ON EARTH OVERBOARD HOPE AND GLORY AMONG THE WILD CHIMPANZEES WHALE NATION BESTSELLER WICKED WALTZING TERMINATOR, THE MASSACRE AT MASAI MARA KNOTTY PROBLEMS FOR SAILORS ALIEN ALIENS GARFIELD TAKES A HIKE SURVIVING THE STORM PINOCCIO 02 RUN OF INDEX-EG2.EXE USING VIDEOCODE KEY Enter key : 1=VideoCode, 2=VideoTitle -> FLIGHT OF THE CONDOR, THE PREDATOR LIVING EARTH, THE COMMANDO ROBOCOP LEOPARD HUNTS IN DARKNESS, A DIRTY DANCING COMPETENT CREW YACHT MASTER OPEN OCEAN SAILING PRINCESS BRIDE, THE LIFE ON EARTH OVERBOARD HOPE AND GLORY AMONG THE WILD CHIMPANZEES WHALE NATION BESTSELLER WICKED WALTZING TERMINATOR, THE MASSACRE AT MASAI MARA KNOTTY PROBLEMS FOR SAILORS ALIEN ALIENS GARFIELD TAKES A HIKE SURVIVING THE STORM PINOCCIO 02 RUN OF INDEX-EG2 USING VIDEOTITLE KEY Enter key : 1=VideoCode, 2=VideoTitle -> ALIEN ALIENS AMONG THE WILD CHIMPANZEES BESTSELLER COMMANDO COMPETENT CREW DIRTY DANCING FLIGHT OF THE CONDOR, THE GARFIELD TAKES A HIKE HOPE AND GLORY KNOTTY PROBLEMS FOR SAILORS LEOPARD HUNTS IN DARKNESS, A LIFE ON EARTH LIVING EARTH, THE MASSACRE AT MASAI MARA OPEN OCEAN SAILING OVERBOARD PINOCCIO PREDATOR PRINCESS BRIDE, THE ROBOCOP SURVIVING THE STORM TERMINATOR, THE WHALE NATION WICKED WALTZING YACHT MASTER 05 RUN OF INDEX-EG2 USING VIDEOTITLE KEY Enter key : 1=VideoCode, 2=VideoTitle -> ALIEN ALIENS AMONG THE WILD CHIMPANZEES BESTSELLER COMMANDO COMPETENT CREW DIRTY DANCING FLIGHT OF THE CONDOR, THE GARFIELD TAKES A HIKE HOPE AND GLORY KNOTTY PROBLEMS FOR SAILORS LEOPARD HUNTS IN DARKNESS, A LIFE ON EARTH LIVING EARTH, THE MASSACRE AT MASAI MARA OPEN OCEAN SAILING OVERBOARD PINOCCIO PREDATOR PRINCESS BRIDE, THE ROBOCOP SURVIVING THE STORM TERMINATOR, THE WHALE NATION WICKED WALTZING YACHT MASTER 05

Reading an Indexed File - Directly. IDENTIFICATION DIVISION. PROGRAM-ID. ReadingIndexedFile. * Illustrates direct read on an indexed file by any key ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. DATA DIVISION. FILE SECTION. FD VideoFile. 01 VideoRecord. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 SupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2). 88 RecordFound VALUE "00". 01 RequiredKey PIC VideoCodeKey VALUE VideoTitleKey VALUE PrnVideoRecord. 02 PrnVideoCode PIC 9(5). 02 PrnVideoTitle PIC BBBBX(40). 02 PrnSupplierCode PIC BBBB99. IDENTIFICATION DIVISION. PROGRAM-ID. ReadingIndexedFile. * Illustrates direct read on an indexed file by any key ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VideoFile ASSIGN TO "VIDEO.DAT" ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS VideoCode ALTERNATE RECORD KEY IS VideoTitle WITH DUPLICATES FILE STATUS IS VideoStatus. DATA DIVISION. FILE SECTION. FD VideoFile. 01 VideoRecord. 02 VideoCode PIC 9(5). 02 VideoTitle PIC X(40). 02 SupplierCode PIC 99. WORKING-STORAGE SECTION. 01 VideoStatus PIC X(2). 88 RecordFound VALUE "00". 01 RequiredKey PIC VideoCodeKey VALUE VideoTitleKey VALUE PrnVideoRecord. 02 PrnVideoCode PIC 9(5). 02 PrnVideoTitle PIC BBBBX(40). 02 PrnSupplierCode PIC BBBB99.

Reading an Indexed File - Directly. PROCEDURE DIVISION. Begin. OPEN INPUT VideoFile. DISPLAY "Chose key VideoCode = 1, VideoTitle = 2 -> " WITH NO ADVANCING. ACCEPT RequiredKey. IF VideoCodeKey DISPLAY "Enter Video Code (5 digits) -> " WITH NO ADVANCING ACCEPT VideoCode READ VideoFile KEY IS VideoCode INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-READ END-IF IF VideoTitleKey DISPLAY "Enter Video Title (40 chars) -> " WITH NO ADVANCING ACCEPT VideoTitle READ VideoFile KEY IS VideoTitle INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-READ END-IF IF RecordFound MOVE VideoCode TO PrnVideoCode MOVE VideoTitle TO PrnVideoTitle MOVE SupplierCode TO PrnSupplierCode DISPLAY PrnVideoRecord END-IF. CLOSE VideoFile. STOP RUN. PROCEDURE DIVISION. Begin. OPEN INPUT VideoFile. DISPLAY "Chose key VideoCode = 1, VideoTitle = 2 -> " WITH NO ADVANCING. ACCEPT RequiredKey. IF VideoCodeKey DISPLAY "Enter Video Code (5 digits) -> " WITH NO ADVANCING ACCEPT VideoCode READ VideoFile KEY IS VideoCode INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-READ END-IF IF VideoTitleKey DISPLAY "Enter Video Title (40 chars) -> " WITH NO ADVANCING ACCEPT VideoTitle READ VideoFile KEY IS VideoTitle INVALID KEY DISPLAY "VIDEO STATUS :- ", VideoStatus END-READ END-IF IF RecordFound MOVE VideoCode TO PrnVideoCode MOVE VideoTitle TO PrnVideoTitle MOVE SupplierCode TO PrnSupplierCode DISPLAY PrnVideoRecord END-IF. CLOSE VideoFile. STOP RUN.

Reading an Indexed File - Directly. RUN OF INDEX-EG3.EXE USING VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> DIRTY DANCING 04 RUN OF INDEX-EG3.EXE USING VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> OVERBOARD 01 RUN OF INDEX-EG3.EXE USING VIDEOTITLE Chose key VideoCode = 1, VideoTitle = 2 -> 2 Enter Video Title (40 chars) -> OVERBOARD OVERBOARD 01 RUN OF INDEX-EG3.EXE USING VIDEOTITLE Chose key VideoCode = 1, VideoTitle = 2 -> 2 Enter Video Title (40 chars) -> DIRTY DANCING DIRTY DANCING 04 RUN OF INDEX-EG3.EXE USING NON EXISTANT VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> VIDEO STATUS :- 23 RUN OF INDEX-EG3.EXE USING VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> DIRTY DANCING 04 RUN OF INDEX-EG3.EXE USING VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> OVERBOARD 01 RUN OF INDEX-EG3.EXE USING VIDEOTITLE Chose key VideoCode = 1, VideoTitle = 2 -> 2 Enter Video Title (40 chars) -> OVERBOARD OVERBOARD 01 RUN OF INDEX-EG3.EXE USING VIDEOTITLE Chose key VideoCode = 1, VideoTitle = 2 -> 2 Enter Video Title (40 chars) -> DIRTY DANCING DIRTY DANCING 04 RUN OF INDEX-EG3.EXE USING NON EXISTANT VIDEOCODE Chose key VideoCode = 1, VideoTitle = 2 -> 1 Enter Video Code (5 digits) -> VIDEO STATUS :- 23

Select and Assign for Indexed Files

Indexed Files - Primary Key Index Buckets Level 1 Level 0 Level 2 Data Buckets

Indexed Files - Alternate Key H R Z L O R C F H T W Z Mi Nf Ni Nt Oi Ot Index Buckets Level 1 Level 0 Level 2 Base Buckets Ii Ef Bi Nt Jt At Data Buckets

Indexed Files - Alternate Key H R Z L O R C F H T W Z Mi Nf Ni Nt Oi Ot Index Buckets Level 1 Level 0 Level 2 Base Buckets Ii Ef Bi Nt Jt At Data Buckets Ot 45 Nf 65 Mi 71

FDs for Indexed Files

Indexed File Verbs - OPEN

Indexed File Verbs - READ

Indexed File Verbs - Write and Rewrite

Indexed File Verbs - DELETE

Indexed File Verbs - START