30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1. Introduction to <strong>File</strong> <strong>Management</strong><br />

<strong>File</strong> types<br />

Traditional file management, formerly known as data management, is the part of<br />

the operating system that controls the storing and accessing of data by an<br />

application program. The data may be on internal storage (for example, database),<br />

on external media (diskette, tape, printer), or on another system. <strong>File</strong> management,<br />

then, provides the functions that an application uses in creating and accessing data<br />

on the system and ensures the integrity of the data according to the definitions of<br />

the application.<br />

<strong>File</strong> management provides functions that allow you to manage files (create, change,<br />

override, or delete) using CL commands, and create and access data through a set<br />

of operations (for example, read, write, open, or close). <strong>File</strong> management also<br />

provides you with the capability to access external devices and control the use of<br />

their attributes for creating and accessing data.<br />

If you want to make more efficient use of printers and diskette devices, file<br />

management provides the capability of spooling data for input or output. For<br />

example, data being written to a printer can be held on an output queue until the<br />

printer is available for printing.<br />

On the <strong>IBM</strong> AS/400 system, each file (also called a file object) has a description<br />

that describes the file characteristics and how the data associated with the file is<br />

organized into records, and, in many cases, the fields in the records. Whenever a<br />

file is processed, the operating system (the Operating System/400 or OS/400<br />

program) uses this description.<br />

You can create and access data on the system by using these file objects. <strong>File</strong><br />

management defines and controls several different types of files. Each file type has<br />

associated CL commands to create and change the file, and you can also create and<br />

access data through the operations provided by file management.<br />

The file management functions support the following types of files:<br />

v Database files are files (including distributed files) whose associated data is<br />

stored permanently in the system.<br />

v Device files are files that provide access to externally attached devices such as<br />

displays, printers, tapes, diskettes, and other systems that are attached by a<br />

communications line. The device files supported are:<br />

– Display files, which provide access to display devices<br />

– Printer files, which describe the format of printed output<br />

– Tape files, which allow access to data files on tape devices<br />

– Diskette files, which provide access to data files on diskette devices<br />

– Intersystem communications function (OS/400-ICF) files, hereafter referred<br />

to as ICF files, which allow a program on one system to communicate with a<br />

program on the same system or another system<br />

v Save files are files that are used to store saved data on disk (without requiring<br />

diskettes or tapes).<br />

© Copyright <strong>IBM</strong> Corp. 1998, 2000 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!