File
Enhanced Definition
In the context of IBM z/OS, a **file** is commonly referred to as a **dataset**, representing a named collection of related data records stored on a direct access storage device (DASD) or magnetic tape. It serves as the fundamental unit for storing and managing information for applications, system utilities, and user data.
Key Characteristics
-
- Dataset Organization: Files on z/OS are categorized by their organization, such as Sequential (PS), Partitioned (PO), Partitioned Extended (PO-E), and Virtual Storage Access Method (VSAM), each optimized for different access patterns and data structures.
- Storage Media: Files primarily reside on DASD (Direct Access Storage Devices, e.g., disk drives) or magnetic tape, with DASD providing random access and tape typically used for sequential processing, backups, and archives.
- Record Format: Data within a file is structured into records, which can have fixed-length (FB), variable-length (VB), or undefined-length (U) formats, dictating how data is stored and retrieved.
- JCL
DDStatement: Files are typically allocated and defined to a job step using a Data Definition (DD) statement in JCL (Job Control Language), specifying attributes like dataset name, organization, record format, block size, and disposition. - Managed by DFSMS: The allocation, placement, and management of files (datasets) on storage volumes are often handled by DFSMS (Data Facility Storage Management Subsystem), which automates storage administration tasks based on policies.
- Cataloged: Most frequently accessed files are cataloged in the z/OS master catalog or user catalogs, allowing them to be referenced by name without needing to specify their physical location (volume serial).
Use Cases
-
- Application Data Storage: Storing transactional data, master files, and historical records for COBOL, PL/I, or Assembler applications, such as customer information or inventory details.
- Intermediate Work Files: Used by batch jobs for temporary storage during processing, often created and deleted within the same job step or job, defined with
DISP=(NEW,DELETE)orDISP=(NEW,PASS). - Program Libraries: Partitioned Datasets (PDS) and Partitioned Datasets Extended (PDSE) serve as libraries to store source code (e.g., COBOL programs), load modules, JCL procedures, and other reusable components as members.
- System Logs and Audit Trails: Capturing system events, application activity, and security logs, which are crucial for monitoring, debugging, and compliance purposes.
- Input/Output for Utilities: Providing input to and receiving output from z/OS utilities (e.g., IE
Related Products
Related Vendors
ASE
3 products
IBM
646 products
CSI International
33 products
TIBCO
7 products
Attachmate
13 products
Proginet
3 products
Related Categories
Files and Datasets
168 products
File Transfer
71 products
Db2
243 products
Browse and Edit
64 products
Legacy Application/Data Access
127 products