Uni Hamburg Mainframe Summit z/os The Mainframe Operating. Part 3 z/os data sets. Introduction to the new mainframe. Chapter 5: Working with data sets

Similar documents
z/os Introduction and Workshop Data Sets

INTRODUCTION. José Luis Calva 1. José Luis Calva Martínez

Uni Hamburg Mainframe Summit 2010 z/os The Mainframe Operating. Part 6 z/os Concepts

z/os Learning Center: Introduction to ISPF Unit 1: The Basics of ISPF and Data Sets Module 3: ISPF Data Set Basics

DFSMS Basics: Data Set Fundamentals Get to Know Your Data Sets!

COMPUTER EDUCATION TECHNIQUES, INC. (JCL ) SA:

What Every Storage Administrator Should Do For YOUR DB2 Environment

ISPF Users Boot Camp - Part 2 of 2

IBM. DFSMS Implementing System-Managed Storage. z/os. Version 2 Release 3 SC

Chapter 2 TSO COMMANDS. SYS-ED/ Computer Education Techniques, Inc.

JCL Utilities. A Access Method Services... 4:8 Alternate Indexes and Paths... 4:5 AMS Commands... 4:8 anyname DD Statement... 9:5

//JOBNAME JOB //STEPNAME EXEC //DDNAME DD //* comment - upper or lower case /*...end of JCL stream

IBM. DFSMS Introduction. z/os. Version 2 Release 3 SC

Paradigm Shifts in How Tape is Viewed and Being Used on the Mainframe

Chapter 2 ACCESS METHOD SERVICES. SYS-ED/ Computer Education Techniques, Inc.

Basi di Dati Complementi. Mainframe

Systems. OS/VS2 MVS Data Management Services Guide. Release 3.7. Includes the Following Selectable Units:

IBM InfoSphere Classic Federation for z/os Version 11 Release 1. Installation Guide GC

Table 12.2 Information Elements of a File Directory

File Organization Sheet

INNOVATION TECHSUPPORT

File Management. Chapter 12

Overview Guide. r12.5, Second Edition

Chapter. Chapter. Magnetic and Solid-State Storage Devices

Uni Hamburg Mainframe Summit 2010 z/os The Mainframe Operating. Part 4 z/os Overview

IBM Tivoli Advanced Reporting for DFSMShsm. User s Guide. Version 1 Release 1 SC

IBM. DFSMS Using the Interactive Storage Management Facility. z/os. Version 2 Release 3 SC

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name

1) How many unique operating systems are available on IBM Z hardware? Answer Choice A58_

IBM Tivoli Advanced Reporting for DFSMShsm. User s Guide. Version 2 Release 2 SC

IBM. Program Directory for. IBM z Systems Development and Test Environment Tools. V Program Number 5725-G39 FMID HALMB00.

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

Uni Hamburg Mainframe Summit z/os The Mainframe Operating. Part 2 TSO, ISPF und Unix Shell. Introduction to the new mainframe

Data Migration and Disaster Recovery: At Odds No More

Program Directory for IBM z Systems Development and Test Environment Tools

Dino Explorer Suite. User's Guide version 6.2.3

UNIX Files. How UNIX Sees and Uses Files

CA Software Change Manager for Mainframe

Directory Structure and File Allocation Methods

File Organization Sheet

Contents. Error Message Descriptions... 7

Workload Characterization Algorithms for DASD Storage Subsystems 1

for Mainstar MXI G2 Session 8962 Speaker: Shari Killion

ABCs of OS/390 System Programming Volume 3

IBM z Systems Development and Test Environment Tools User's Guide IBM

CA FAVER VSAM Data Protection

zcost Management Dino Explorer Suite User s Guide

Typical File Extensions File Structure

Input/Output Macros I/O Channel

With Tivoli Advanced Catalog

Dino Explorer. MVS Data Collector for Mainframe Assessment

Improving VSAM Application Performance with IAM

z/os Learning Center: Introduction to ISPF Unit 1: The Basics of ISPF and data sets Module 4: Working with data sets

CA File Master Plus. ISPF User Guide. Release

Installation Instructions for SAS 9.4 Installation Kit for FTP Format on z /OS

CSC 553 Operating Systems

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

VSAM Management. Overview. z/os. CSI International 8120 State Route 138 Williamsport, OH

IBM Virtualization Engine TS7700 Series Copy Export Function User's Guide Version 2.1.5

Introduction to VSAM. Session Presented by Michael E. Friske

CS3600 SYSTEMS AND NETWORKS

Files. File Structure. File Systems. Structure Terms. File Management System. Chapter 12 File Management 12/6/2018

File System Interface and Implementation

Optimizing System Performance

IBM. Using the Installation Dialog. ServerPac. Dialog Level: 28 SA

IBM Virtualization Engine TS7700 Series Best Practices. Usage with Linux on System z 1.0

Introduction to File Systems

Segmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS)

* Parameter... 1:18. B Backward References... 5:8 Blocksize: Choosing... 3:19

IBM. Using the Installation Dialog. ServerPac. Dialog Level: 28 SA

IBM. User s Guide. NetView File Transfer Program Version 2 for MVS. Release 2.1 SH

Introduction to Network Operating Systems

Module 13: Secondary-Storage

What is a file system

Operating Systems. Operating Systems Professor Sina Meraji U of T

IBM. Archive Manager for z/vm Administration Guide. IBM Archive Manager for z/vm. Version 1 Release 1 SC

CA ACF2 for z/os Adapter Installation and Configuration Guide

The SMF recovery analysis report (SRSSMF) formats SMF records produced by SRS and provides totals for the successful and unsuccessful recoveries

Chapter 14: Mass-Storage Systems

z/os CSI International 8120 State Route 138 Williamsport, OH

CA Top Secret and CA ACF2 101

Some popular Operating Systems include Linux Operating System, Windows Operating System, VMS, OS/400, AIX, z/os, etc.

at Rocket Software Mainframe CVS z/os Unix System Services CVS client Extending the functionality of the Lisa Bates

IBM Spectrum Protect HSM for Windows Version Administration Guide IBM

Chapter 6 Storage Management File-System Interface 11.1

Universal Storage Consistency of DASD and Virtual Tape

DATA STRUCTURES USING C

z/os Basics: Migrating from HFS to zfs and things to watch out for

Functions and CALL Routines

SMS is Now Mandatory for DB2 V10! SMS Best Practices for DB2

z/os and DB2 Basics for DB2 for z/os DBA Beginners

Secondary Storage (Chp. 5.4 disk hardware, Chp. 6 File Systems, Tanenbaum)

Mainframe Developer & Admin Training in Chennai

Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple proces

CS510 Operating System Foundations. Jonathan Walpole

Introduction. Secondary Storage. File concept. File attributes

Solutions for SAP Systems Using IBM DB2 for IBM z/os

Installation Instructions for SAS 9.4 Installation Kit for Basic Cartridge Installations on z /OS

Achieving Higher Levels of Productivity with IBM ISPF Productivity Tool for z/os IBM Redbooks Solution Guide

Transcription:

Uni Hamburg Mainframe Summit z/os The Mainframe Operating Chapter 5: Working with data sets Part 3 z/os data sets Michael Großmann IBM Technical Sales Mainframe Systems grossman@de.ibm.com Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 4.0.1 Chapter 5 objectives Be able to: Explain what a data set is escribe data set naming conventions and formats List some access methods for managing data and programs Explain what catalogs and s are used for Create, delete, and modify data sets Explain the differences between UNIX file systems and z/os data sets escribe the z/os UNIX file systems use of data sets. Key terms in this chapter size catalog data set high level qualifier or HLQ library logical length or LECL member PS and PSE format or ECM system managed storage or SMS virtual storage access method or VSAM volume table of contents or 3 4 What is a data set? A data set is a collection of logically related data s 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 s used by a processing program. You can print a data set or display it on a terminal. The logical is the basic unit of information used by a program running on z/os. How data is stored in a z/os system ata is stored on a direct access storage device (AS), magnetic tape volume, or optical media. You can store and retrieve s either directly or sequentially. You use AS volumes for storing data and executable programs, including the operating system itself, and for temporary working storage. You can use one AS volume for many different data sets, and reallocate or reuse space on the volume. 5 6 1

ata management in z/os What an access method is ata 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, ata acility: System-Managed Storage (SMS) is used to automate storage management for data sets. efines 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: o VSAM, QSAM, BSAM, BAM, and BPAM. 7 8 AS: Use and terminology Using a data set irect Access Storage evice (AS) is another name for a disk drive. AS volumes are used for storing data and executable programs. ata sets in a z/os system are organized on AS volumes. A disk drive contains cylinders Cylinders contain Tracks contain data s 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: ISP data set panel, option 3.2 Access Method Services TSO ALLOCATE command job control language (JCL) 9 10 Allocating space on AS volumes How space is specified: explicitly (SPACE parameter) implicitly (SMS data class) Logical s and s: Smallest amount of data to be processed Grouped in physical s named s ata set extents: Space for a disk data set is assigned in extents ata set formats B V VB BW U W ixed s. ixed ed s. BLKSIZE = n * LECL Variable s. Variable ed s. BLKSIZE >= 4 + n * largest LECL Undefined s. No defined internal structure for access method. ecord and descriptors words are each 4 bytes long 11 12 2

Types of data sets We discuss three types in this class: Sequential, partitioned, and VSAM A sequential data set is a collection of s written and read in sequential order from beginning to end. A partitioned data set (PS) is a collection of sequential data sets, called members. Consists of a directory and one or more members. Also called a library. A PSE is a partitioned data set extended. PS versus PSE PS data sets: Simple and efficient way to organize related groups of sequential files. PSE data sets: Similar to a PS, but advantages include: o Space reclaimed automatically when a member is deleted o lexible size o Can be shared o aster directory searches 13 14 What is a data set, and how is it stored VSAM AS Partitioned and Sequential Previously used space recoverable by compress utility Sequential ata Set ecord 1 ecord 2 ecord 3 ecord 4 etc... Partitioned ata Set Entry for COMPJCL Entry for JCOPY Entry for SOT1 COMPJCL JCOPY SOT1 VSAM is Virtual Storage Access Method VSAM provides more complex functions than other disk access methods VSAM formats: Key Sequence ata Set (KSS) Entry Sequence ata Set (ESS) elative ecord ata Set (S) Linear ata Set (LS) Available space 15 16 Simple VSAM control interval How data sets are named 1 2 3 free space in CI ecord escriptor ields CI ata set naming convention Unique name o Maximum 44 characters Maximum of 22 name segments: level qualifier o The first name in the left: high level qualifier (HLQ) o The last name in the right: low level qualifier (LLQ) o Level qualifiers are separated by '.' Each level qualifier: o rom 1 up to 8 characters o The first must be alphabetical (A-Z) or special (@ # $) o The 7 remaining: alphabetical, national, numeric (0-9) or hyphen (-) o Upper case only Example: MYI.JCL.ILE2 HLQ: MYI 3 qualifiers Member name of partitioned data set 8 bytes long irst byte: alphabetical (A-Z) or special (@ # $) The 7 remaining: alphabetical, special, numeric (0-9) 17 18 3

Catalogs and s z/os uses a catalog and a volume table of contents () on each AS volume to manage the storage and placement of data sets. LABEL (volser) : Lists the data sets on a volume Lists the free space on the volume. MY.ATA YOU.ATA free space Extents 19 20 How a catalog is used Catalog Structure SYSTEM.MASTE.CATALOG A catalog associates a data set with the volume on which the data set is located. Locating a data set requires: ata set name Volume name Unit (volume device type) Typical z/os system includes a master catalog and numerous user catalogs. USECAT.IBM User Catalog ata Set with HLQ=IBMUSE Master Catalog ata Set-SYS1.A1 or HLQs (alias) IBMUSE...USE Catalog Structure USECAT.COMPANY User Catalog ata Set with HLQ=USE volume (wrk002) unit (3390) volume (wrk001) unit (3390) IBMUSE.A2 IBMUSE.A3 IBMUSE.A1 USE.A1 SYS1.A1 volume (012345) unit (tape) USE.TAPE.A1 21 22 z/os UNIX file systems UNIX file system structure 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. s 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 AS volume. 23 24 4

Summary A data set is a collection of logically related data (programs or files) ata sets are stored on disk drives (AS) and tape. Most z/os data processing is -oriented. Byte stream files are not present in traditional processing, except in z/os UNIX. z/os s follow well-defined formats, based on format (ECM), logical length (LECL), and the maximum size (BLKSIZE). z/os data set names have up to 44 characters, divided by periods into qualifiers. 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 (PS or PSE) 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. 25 26 5