0% found this document useful (0 votes)
30 views4 pages

File Organization in Business Systems

wilmat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views4 pages

File Organization in Business Systems

wilmat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

File Organization

 MANUAL SYSTEM

Data may be stored in folders in a filing cabinet, loose leaf pages in a ledger, cards in a card box,
or numerous other ways.

 COMPUTERIZED SYSTEM
Data is commonly stored on magnetic media such as disk or tape. These provide a more
permanent form of storage than main memory because they are non-volatile, i.e the data is
retained when the power is switched off.
 Databases provide a very convenient way to store and retrieve data, but not all data in
every organisation using computers is stored in databases.

 What is a database?
It is a collection of data that is organized so that its contents can easily be accessed,
managed, and updated.

 Define Database Management system?


Its computer software that manages databases

 What is a file?
A file is an organized collection of data.
In computer terminology an employee file, for example, consists of a collection of data
about all employees, a stock file consists of a collection of data about all stock items, and so
on.
A file therefore consists of a number of records.
 What is a record?
A record is the collection of data pertaining to one item or individual. It consists of a number
of fields, which each hold one piece of data such as name, date of birth etc.

 What is a field?
It is a single piece of information or a named unit of information in a database

Master & Transaction files

1
 Transaction Files
Set of documents that record and are used in the day to day operations of the business.
These files contain details of all details of operations done in a business daily.
• A transaction file is used to hold temporary data

• It is used to update the master file

• Transaction can occur in any order so before updating the master file the transaction file
needs to be sorted first.

Master files
These are permanent files kept up to date by applying the transactions that occur during the
operation of the business. They contain generally two basic types of data:
Data of a more or less permanent nature such as on a payroll file, name,
address, rate of pay
Data which will change every time transactions are applied to the file e.g. gross
pay to date, tax paid to date, bank balance etc.
The most up-to-date file

It is the most Complete file

It is the most important file – if the master file is lost or damaged all the information is lost.

Transaction Log File


• This keeps track of all transactions taking place in a business.

• It allows one to verify the data that s/he has.

• Normally the information in the master file is overwritten during up dating, so some
transactions take place simultaneous overwriting each other, a track of these
transactions will help update your data at a later time.

Updating a file

 A master file is updated when one or more records is altered by applying a transaction or a
file of transactions to it.
 First of all the correct record has to be located and read into memory, then updated in
memory, and written back to the master file.
Grandfather Father Son Method of updating

2
 1. A record is read from the master file into memory
 2. A record is read from the transaction file into memory
 3. The record keys from each file are compared. If no updating is required to the master file
record currently in memory (there being no corresponding transaction record) the master
record is copied from memory to a new master file on a different tape or area of disk, and
another master file record is read into memory , overwriting the previous one. This step is
then repeated.
 4. If there is a transaction for the master record currently in memory, the record is updated.
It will be retained in memory in case there are any more transactions which apply to it. Steps
2-4 are then repeated.

 After a sequential file has been updated, two versions or generations of the master file exist;
the old master file.

Types of file organisation


 Files stored on magnetic media can be organized in a number of ways, just as in a manual
system. There are advantages and disadvantages to each type of file organisation, and the
method chosen will depend on several factors such as:
 How the file is to be used
 How many records are processed each time the file is updated
 Whether individual records need to be quickly accessed

a. Serial file Organization


 The records on a serial file are not in any particular sequence, therefore storing of details
does not follow any order except one after the other.. Serial files are used as temporary files
to store transaction data.
b. Sequential file Organization
 As with serial organisation, records are stored one after the other, but following a certain
order. Files that are stored on tape are always either serial or sequential, as it is impossible to
write records to a tape in any way except one after the other.

c. Indexed / Random/ Direct File organization


Records are stored in sequence based on the value in the key field of each record.
Here records are stored according to either their disk address or their relative position within
the file.

3
• In database they usually call the unique field that is used to store the records in a data
file a PRIMARY KEY

Methods of Accessing Files

Serial Access

• To read a serial file the computer has to go through each record to reach the required
one. The reading is only in forward. It can never read backward.

Sequential Access

• To read a file the computer has to go through all the files until it reaches the required
one. The difference with the serial access is that in sequential the computer can read
backwards and forwards

• Devices that uses this access will be the magnetic tape and also the audio tape

Direct or random Access

• Ability to obtain data from the storage device by going directly to where it is physically
located.
• The accessing of record depends on the key that is used to store them. Any record can
be accessed at any time.
• To get to one record the computer need not to “look” at the any other record.

• Compact discs are a good example of the devices that can be used to store data
randomly e.g. audio CDs

Common questions

Powered by AI

File organization impacts transaction processing efficiency significantly. Serial and sequential methods are slower due to the need for sequential access, limiting prompt data retrieval required for real-time transaction processing. Conversely, indexed or random organization allows direct access to records, facilitating faster processing and immediate update operations necessary for efficient transaction management .

The master file is central to business operations because it contains up-to-date and comprehensive information essential for decision-making and maintaining operational integrity. It includes both permanent and transactional data reflecting the current state of business. Its vulnerability lies in its critical nature; if lost or damaged, all dependent information is at risk, potentially disrupting business continuity .

The Grandfather-Father-Son method involves reading a master file record and a transaction file record into memory, comparing them, and updating the master record if a corresponding transaction exists. Updated records are written to a new master file, ensuring old data (grandfather version) can be accessed if needed, while the current data (father version) is safely preserved .

Computerized systems offer significant advantages in data integrity and reliability. They allow for the use of databases which ensure data is organized, easily accessible, and can be managed systematically. Non-volatile magnetic storage ensures data retention without power. Data is less susceptible to human error and physical damage compared to manual systems, which rely on paper-based storage .

Random access methods are highly efficient in data retrieval as they allow direct access to records based on a key, significantly reducing the time needed to locate and access data. In contrast, sequential and serial access methods require linear search processes, which are time-consuming as records need to be read sequentially until the target is found, making them less effective for quick retrieval .

A transaction log file is crucial because it tracks all business transactions, allowing users to verify and recover data. This log is especially important since updating often involves overwriting existing master file information, and having a transaction log helps maintain data integrity by providing a reliable record of all transactions for backup and recovery purposes .

A Database Management System (DBMS) is crucial for organizing, accessing, and updating data stored within a database. It acts as an interface between the database and users, ensuring data consistency, integrity, and security. A DBMS facilitates efficient data management by providing structured query processing, transaction management, and data recovery functions .

Manual systems store data in physical formats like folders, ledgers, or card boxes, which are prone to damage and less efficient for retrieval. In contrast, computerized systems store data on non-volatile magnetic media like disks or tapes, offering more permanent and efficient storage and retrieval. Databases in computerized systems provide organized data management, although not all data is stored in databases .

Serial file organization does not maintain order, leading to slow access as records must be read sequentially to find the target data. Sequential organization maintains a defined order, allowing the ease of reading forwards and backwards but still requires processing multiple records to access specific data. Indexed or random organization allows direct access to data based on a key field, significantly improving access speed since any record can be directly accessed without reading others .

Losing a master file can be disastrous as it contains essential, up-to-date business data crucial for operations. Its loss can hamper decision-making and disrupt operational continuity since it often represents the single source of truth for current data. Rebuilding or recovering it from transaction logs or backup systems is often time-consuming and costly .

You might also like