answersLogoWhite

0


Best Answer

File Organization

File organization refers to the way records are physically arranged on a storage device. This topic describes the two main types of file organization.

Related topics describe the following:

  • Record type refers to whether records in a file are all the same length, are of varying length, or use other conventions to define where one record ends and another begins. For more information on record types, see Record Types.

  • Record access refers to the method used to read records from or write records to a file, regardless of its organization. The way a file is organized does not necessarily imply the way in which the records within that file will be accessed. For more information on record access, see File Access and File Structure and Record Access.

Types of File OrganizationFortran supports two types of file organizations:
  • Sequential

  • Relative

The organization of a file is specified by means of the ORGANIZATION keyword in the OPEN statement.

The default file organization is always ORGANIZATION= 'SEQUENTIAL' for an OPEN statement.

You can store sequential files on magnetic tape or disk devices, and can use other peripheral devices, such as terminals, pipes, and line printers as sequential files.

You must store relative files on a disk device.

Sequential File OrganizationA sequentially organized file consists of records arranged in the sequence in which they are written to the file (the first record written is the first record in the file, the second record written is the second record in the file, and so on). As a result, records can be added only at the end of the file. Attempting to add records at some place other than the end of the file will result in the file begin truncated at the end of the record just written.

Sequential files are usually read sequentially, starting with the first record in the file. Sequential files with a fixed-length record type that are stored on disk can also be accessed by relative record number (direct access).

Relative File OrganizationWithin a relative file are numbered positions, called cells. These cells are of fixed equal length and are consecutively numbered from 1 to n, where 1 is the first cell, and n is the last available cell in the file. Each cell either contains a single record or is empty. Records in a relative file are accessed according to cell number. A cell number is a record's relative record number; its location relative to the beginning of the file. By specifying relative record numbers, you can directly retrieve, add, or delete records regardless of their locations. (Detecting deleted records is only available if you specified the -vms (Linux OS and Mac OS X) or /vms (Windows OS) option when the program was compiled.)

When creating a relative file, use the RECL value to determine the size of the fixed-length cells. Within the cells, you can store records of varying length, as long as their size does not exceed the cell size.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is file organization and its types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are Different types of file organisation in DBMS?

Heap file organization Sequential File Organization Hashing File organization


What is the difference between the file maintenance and file organization?

file organization is of 3 types sequential,direct and indexed sequential where how data is accessed in eash file is decided where as file maintainence is


What different types of file processing system?

sequential file organization index file orgaization diect file orgaization


What is file organization in DBMS?

file organization


What is multikey file organization?

to have a data file with multiple access path is known as multi key file organization


What are different file types?

There are two types of file organization associated with computer programming. The first is sequential filing where files are arranged in a sequence order in which they are written. The second file type is relative filing where files are recorded based on their consecutive numbered position which is referred to as the cell number.


Importance of file organization?

There is great importance in file organization. This type of organization can be easily looked through and files are easy to retrieve.


What are different types of file organizing?

There are two types of file organization associated with computer programming. The first is sequential filing where files are arranged in a sequence order in which they are written. The second file type is relative filing where files are recorded based on their consecutive numbered position which is referred to as the cell number.


What is random file organisation?

random file organization is a organization were you search a certain object ofr file by the use of any key and in search by randomly


What are the 3 types of police organization structure?

types of police organization


What are types of organization?

Types of organizations include; Business organizations Market Organization Hierarchical Organization Adhocracy


What is an explanation of the hash file organization?

hash file organisation is containing the record of the file.