Introduction to the new mainframe © Copyright IBM Corp., 2005. All rights reserved. Chapter 4: Working with data sets.

Slides:



Advertisements
Similar presentations
CSCI 365 – Introduction to Large Scale Computing.
Advertisements

Chapter 4 : File Systems What is a file system?
Chapter 10: File-System Interface
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Chapter 10: File-System Interface
Chapter 11 File-System Interface
MVS/ESA Fundamentals of VSAM © Copyright IBM Corp., 2000, All rights reserved.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 2: z/OS Overview.
Chapter 11: File System Implementation
Predecessor to the Database: Traditional File Processing Records are stored in files. Programs are customized to process the data.
File Management Systems
File Management Systems
1 Operating Systems Chapter 7-File-System File Concept Access Methods Directory Structure Protection File-System Structure Allocation Methods Free-Space.
Introduction of z/OS Basics © 2006 IBM Corporation Chapter 5: Working with data sets.
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Operating Systems File systems
Chapter 12 File Management Systems
Guide To UNIX Using Linux Third Edition
Chapter 5: Working with data sets
Introduction to the new mainframe: Large-Scale Commercial Computing © Copyright IBM Corp., All rights reserved. Chapter 6: Accessing large amount.
IBM ISPF Productivity Tool © 2008 IBM Corporation IBM ISPF Productivity Tool for z/OS V 5.9 More Than Just ISPF.
Stephen Linkin Houston Community College January 15, 2007 © Mike Murach & Associates, HCC, IBM 1 Introduction To IBM Mainframe Systems Chapter.
Chapter 10 File System Interface
ITEC 502 컴퓨터 시스템 및 실습 Chapter 10-1: File Systems Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 8: Using Job Control Language (JCL) and System Display and.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
10/16/ ER/CORP/CRS/OS02/003-4 JCL DAY 4. 10/16/ ER/CORP/CRS/OS02/003-4 VSAM DATASETS (virtual storage access method) These are the logical.
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
MVS (Day 2). Copyright © 2005, Infosys Technologies Ltd 2 ER/CORP/CRS/OS01/003 Version No: 1.0 Agenda Data Management –Definition of data set and Record.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Lecture 21 Lecture 2: Using TSO and ISPF Tuesday, January 20, 2009.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
Working with Datasets Part 1, non VSAM
JCL Day 3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Agenda for Day 3  VSAM data sets  Definition & Types 
Data resource management
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
Disk & File System Management Disk Allocation Free Space Management Directory Structure Naming Disk Scheduling Protection CSE 331 Operating Systems Design.
Lecture 18 Windows – NT File System (NTFS)
File Systems. 2 What is a file? A repository for data Is long lasting (until explicitly deleted).
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
It consists of two parts: collection of files – stores related data directory structure – organizes & provides information Some file systems may have.
FILE ORGANIZATION.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
1 Copyright © 2011 Tata Consultancy Services Limited Virtual Access Storage Method (VSAM) and Numeric Intrinsic Functions (NUMVAL and NUMVAL-C) LG - TMF148.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
Lecture : chapter 9 and 10 file system 1. File Concept A file is a collection of related information defined by its creator. Contiguous logical address.
Chapter 2 Memory and process management
Chapter 11: File System Implementation
Operating Systems (CS 340 D)
Chapter 11: File System Implementation
Chapter 11: File System Implementation
FILE ORGANIZATION.
Chapter 11: File System Implementation
Chapter Four UNIX File Processing.
Operating System Chapter 7. Memory Management
Chapter 14: File-System Implementation
Chapter 11: File System Implementation
Presentation transcript:

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 4: Working with data sets

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 4 objectives Be able to: Explain what a data set is Describe data set naming conventions and record formats List some access methods for managing data and programs Explain what catalogs and VTOCs are used for Create, delete, and modify data sets Explain the differences between UNIX file systems and z/OS data sets Describe the z/OS UNIX file systems’ use of data sets.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Key terms in this chapter block size catalog data set high level qualifier or HLQ library logical record length or LRECL member PDS and PDSE record format or RECFM system managed storage or SMS virtual storage access method or VSAM volume table of contents or VTOC

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. What is a data set? A data set is a collection of logically related data records stored on one disk storage volume or a set of volumes. A data set can be: a source program a library of macros a file of data records used by a processing program. You can print a data set or display it on a terminal. The logical record is the basic unit of information used by a program running on z/OS.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. How data is stored in a z/OS system Data is stored on a direct access storage device (DASD), magnetic tape volume, or optical media. You can store and retrieve records either directly or sequentially. You use DASD volumes for storing data and executable programs, including the operating system itself, and for temporary working storage. You can use one DASD volume for many different data sets, and reallocate or reuse space on the volume.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Data management in z/OS Data management involves all of the following tasks: allocation, placement, monitoring, migration, backup, recall, recovery, and deletion. Storage management is done either manually or through automated processes (or through a combination or both). In z/OS, Data Facility: System-Managed Storage (DFSMS) is used to automate storage management for data sets.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. What an access method is Defines the technique used to store and retrieve data. Includes system-provided programs and utilities to define and process data sets. Commonly used access methods include the following: VSAM, QSAM, BSAM, BDAM, and BPAM.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. DASD: Use and terminology Direct Access Storage Device (DASD) is another name for a disk drive. DASD volumes are used for storing data and executable programs. Data sets in a z/OS system are organized on DASD volumes. A disk drive contains cylinders Cylinders contain tracks Tracks contain data records.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Using a data set To use a data set, you first allocate it. Then, access the data using macros for the access method that you have chosen. Various ways to allocate a data set: ISPF data set panel, option 3.2 Access Method Services TSO ALLOCATE command job control language (JCL)

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Allocating space on DASD volumes How space is specified: explicitly (SPACE parameter) implicitly (SMS data class) Logical records and blocks: Smallest amount of data to be processed Grouped in physical records named blocks Data set extents: Space for a disk data set is assigned in extents

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Data set record formats

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Types of data sets We discuss three types in this class: Sequential, partitioned, and VSAM A sequential data set is a collection of records written and read in sequential order from beginning to end. A partitioned data set (PDS) is a collection of sequential data sets, called members. Consists of a directory and one or more members. Also called a library. A PDSE is a partitioned data set extended.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. PDS versus PDSE PDS data sets: Simple and efficient way to organize related groups of sequential files. PDSE data sets: Similar to a PDS, but advantages include: Space reclaimed automatically when a member is deleted Flexible size Can be shared Faster directory searches

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. What is a data set, and how is it stored

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. VSAM VSAM is Virtual Storage Access Method VSAM provides more complex functions than other disk access methods VSAM record formats: Key Sequence Data Set (KSDS) Entry Sequence Data Set (ESDS) Relative Record Data Set (RRDS) Linear Data Set (LDS)

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Simple VSAM control interval

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. How data sets are named Data set naming convention Unique name Maximum 44 characters Maximum of 22 name segments: level qualifier The first name in the left: high level qualifier (HLQ) The last name in the right: low level qualifier (LLQ) Level qualifiers are separated by '.' Each level qualifier: From 1 up to 8 characters The first must be alphabetical (A-Z) or special # $) The 7 remaining: alphabetical, national, numeric (0-9) or hyphen (-) Upper case only Example: MYID.JCL.FILE2 HLQ: MYID 3 qualifiers Member name of partitioned data set 8 bytes long First byte: alphabetical (A-Z) or special # $) The 7 remaining: alphabetical, special, numeric (0-9)

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Catalogs and VTOCs z/OS uses a catalog and a volume table of contents (VTOC) on each DASD volume to manage the storage and placement of data sets. VTOC: Lists the data sets on a volume Lists the free space on the volume.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. VTOC

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. How a catalog is used A catalog associates a data set with the volume on which the data set is located. Locating a data set requires: Data set name Volume name Unit (volume device type) Typical z/OS system includes a master catalog and numerous user catalogs.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Catalog Structure

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. z/OS UNIX file systems z/OS UNIX System Services (z/OS UNIX) allows z/OS to access UNIX files. A z/OS UNIX file system is hierarchical and byte-oriented. Files in the UNIX file system are sequential files and are accessed as byte streams. UNIX files and traditional z/OS data sets can reside on the same DASD volume.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. UNIX file system structure

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Summary A data set is a collection of logically related data (programs or files) Data sets are stored on disk drives (DASD) and tape. Most z/OS data processing is record-oriented. Byte stream files are not present in traditional processing, except in z/OS UNIX. z/OS records follow well-defined formats, based on record format (RECFM), logical record length (LRECL), and the maximum block size (BLKSIZE). z/OS data set names have up to 44 characters, divided by periods into qualifiers.

Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Summary (continued) Catalogs are used to locate data sets. VSAM is an access method that provides more complex functions than other disk access methods. z/OS libraries are known as partitioned data sets (PDS or PDSE) and contain members. A file in the hierarchical file system can be either a text file or a binary file. z/OS treats an entire UNIX file system hierarchy as a collection of “data sets.” Each data set is a mountable file system.