z/os Introduction and Workshop Data Sets

Similar documents
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

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

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

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

ISPF Users Boot Camp - Part 2 of 2

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

An Introduction to z/os DASD Backup and Archiving

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

COMPUTER EDUCATION TECHNIQUES, INC. (JCL ) SA:

With Tivoli Advanced Catalog

INNOVATION TECHSUPPORT

CA File Master Plus. ISPF User Guide. Release

Workload Characterization Algorithms for DASD Storage Subsystems 1

ABCs of OS/390 System Programming Volume 3

Improving VSAM Application Performance with IAM

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

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

DFSMS Basics: How to Create/Modify an SMS Configuration and Write ACS Routines - Demo

for Mainstar MXI G2 Session 8962 Speaker: Shari Killion

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

Compute (Bridgend) Ltd

Data Migration and Disaster Recovery: At Odds No More

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

IBM. DFSMS Managing Catalogs. z/os. Version 2 Release 3 SC

VSAM Overview. Michael E. Friske Fidelity Investments. Session 11681

The Life and Times of a Data Set: You Wouldn't Want Your Relatives Hanging Around, Why Your Data?

Data Center Management Systems

IBM Tivoli Advanced Allocation Management for z/os. User's Guide. Version 3 Release 1 SC

What Every Storage Administrator Should Do For YOUR DB2 Environment

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

Introduction to VSAM. Session Presented by Michael E. Friske

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

Testing and Debugging Your Installation s ACS Routines

Failures under MVS p. 67 General p. 67 JCL Errors p. 68 Syntactical JCL Errors p. 68 Allocation JCL Errors p. 69 ABEND Failures p.

Session The Catalog Search Interface

CA Panvalet. Installation Guide. r14.6. Third Edition

DFSMSdss Best Practices in an SMS Environment

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

CA FAVER VSAM Data Protection

CustomPac Installation Dialog Message Book Dialog Level:27

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

Overview Guide. r12.5, Second Edition

IBM. DFSMSdfp Storage Administration. z/os. Version 2 Release 3 SC

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

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

Version 9 Release 1. IBM InfoSphere Guardium S-TAP for IMS on z/os V9.1 User's Guide IBM

Implementing and Using Extended-Addressing Volumes (EAV)

Dino Explorer. MVS Data Collector for Mainframe Assessment

Basi di Dati Complementi. Mainframe

Implementing Data Masking and Data Subset with Sequential or VSAM Sources

DFSMS Basics: How to Write ACS Routines Hands-on Lab (Section 1)

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

IBM InfoSphere Optim for z/os Version 7 Release 2. Batch Utilities

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

CA Cloud Storage for System z

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

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

DFSMS Object Support: Data Archiving with OAM

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

2010/04/19 11:38. Describing a unique product that shows the mainframe in a completely different way.

Program Directory for IBM z Systems Development and Test Environment Tools

NaviQuest Testing ACS and Streamlining SMS Tasks

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

Redbooks Paper. Disk storage access with DB2 for z/os. Paolo Bruni John Iczkovits

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

IBM System z Fast Track

---- -::--=--::-:=.. ~.-

CA Compress Data Compression

SMS Volume Selection. z/series Expo Session Z30 September, 2005 Ruth Ferziger

"Charting the Course... z/os Technical Bootcamp Course Summary

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

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

Abstract Updates that apply to DB2 Cloning Tool Version for z/os 3.2 User's Guide (SC )

NaviQuest Testing ACS Hands-On Lab

IBM. DFSMStvs Planning and Operating Guide. z/os. Version 2 Release 3 SC

T-REX: Premier z/os Catalog Management Frequently Asked Questions (FAQ)

Installation Guide r12.5, Second Edition

Version 1 Release 2. IBM IMS Cloning Tool User's Guide IBM SC

DFSMS:Intermediate NaviQuest Streamlining SMS Work

CA Software Change Manager for Mainframe

Dino Explorer Suite. User's Guide version 6.2.3

IBM. DFSMS Object Access Method Application Programmer s Reference. z/os. Version 2 Release 3 SC

ISPF at EI&O UFIT. UF Information Technology. EI&O Document ID: D0040 Last Updated: 06/28/2002

Further Improve VSAM Application Performance

CA PDSMAN PDS Library Management CA RS 1404 Service List

COMP 3400 Mainframe Administration 1

JCL JOB CONTROL LANGUAGE

CA Allocate DASD Space and Placement CA RS 1610 Service List

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

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

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

Understanding Java Batch and WebSphere XD Compute Grid

CA Recovery Analyzer for DB2 for z/os

Frequently Asked Questions about RTD

Mainstar : Backup & Recovery Manager Suite

IBM InfoSphere Guardium S-TAP for Data Sets on z/os User's Guide. Version9Release1

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

IBM System z Fast Track

FASTFIND LINKS. Document Organization Product Version Getting Help Contents MK-96RD648-01

VSAM Demystified. ibm.com/redbooks. Understand VSAM architecture. Manage VSAM data. Improve VSAM performance

Transcription:

z/os Introduction and Workshop Data Sets 2009 IBM Corporation

Unit Objectives After completing this unit, you should be able to: Describe data set naming rules Describe a partitioned data set Describe a sequential data set Describe a VSAM data set Describe a data set extent Describe role of the system catalog and user catalogs Describe role of VTOC Describe z/os based Unix filesystems 2

What is a data set? Commonly known as a file in unix or linux. 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: source program library of macros 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. 3

How data is stored in a z/os system Data is stored on a disk storage volume, magnetic tape, or optical media. Programs and system utilities can store and retrieve records either directly or sequentially. Programs and system utilities use disk volumes for storing data and executable programs, including the operating system itself, and for temporary working storage. Program and system utilities can use one disk volume for many different data sets, and reallocate or reuse space on the volume. 4

Data management in z/os Data management involves all of the following tasks: allocation, placement, monitoring, migration, backup, recall, recovery, and deletion. Disk storage management is done either explicitly or through automated processes (or through a combination or both). In z/os, DFSMS (Data Facility Storage Management Subsystem) is a base component of the operating system and it can be used to automate storage management for data sets. 5

DASD: Use and terminology Direct Access Storage Device (DASD) is another name for a disk volume. 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. 6

Data Sets Common Types of z/os Data Sets Non-VSAM SEQ PDS PDS/E Sequential collection of records referenced by a single data set name Partitioned Data Set (aka PO Partitioned Organization) Consists of a directory and one or more member names Partitioned Data Set Extended Consists of a directory and one or more member names Increased Functionality, Performance and Reduced Maintenance VSAM Increased efficiency and performance beyond non-vsam KSDS Keyed Sequential Data Set ESDS Entry Sequential Data Set RRDS Relative Record Data Set LDS Linear Data Set 7

Data Set Space Allocation How space is specified: explicitly (JCL, ALLOCATE, SVC99, IDCAMS) implicitly (DFSMS Automatic Class Selection, ACS routine) Non VSAM Data Set characteristics: Smallest amount of data to be processed is a logical record Records can be grouped into blocks VSAM Data Set characteristics: Records are stored in control intervals (1 exception LDS) How Data Sets are Created on Disk Storage: A Data Set is assigned disk space in chunks called extents A primary extent is allocated when data set is created. A secondary extent is created/allocated when primary extent is full 8

Data Set (non VSAM) data storage attributes F record record record record Fixed records. FB block record record block record record record record Fixed blocked records. BLKSIZE = n * LRECL V record record Variable records. RDW block VB BDW U record block record record record record record Variable blocked records. BLKSIZE >= 4 + n * largest LRECL record record record record Undefined records. No defined internal structure for access method. Record and block descriptors words are each 4 bytes long 9

Data Set PDS and PDS/E (non VSAM) PDS data sets: Simple and efficient way to organize related groups of sequential files. PDS/E data sets: Similar to a PDS, but advantages include: Space reclaimed automatically when a member is deleted Faster directory searches 10

Data Set Names - VSAM VSAM data set is accessed by a VSAM virtual data set name called a cluster name. VSAM cluster name is associated with 1 or more physical data set names. VSAM ESDS cluster includes a physical DATA component data set name. VSAM KSDS cluster includes a physical DATA component data set name and a physical INDEX component data set name and optionally a physical ALTERNATE INDEX component 11

Data Set VSAM Virtual Storage Access Method VSAM data sets are formatted differently than non-vsam data sets. VSAM data sets are collections of records, grouped into control intervals (CI) with one exception (LDS Linear Data Sets) The control interval (CI) is a fixed area of storage space in which VSAM stores records. The control intervals are grouped into contiguous areas of storage called control areas (CA). To access VSAM data sets, VSAM access method is used 12

Data Set VSAM Virtual Storage Access Method VSAM arranges records by either an 1) index key, or by a 2) relative byte address, or by a 3) relative record number. The following are the different types of VSAM data sets: Key Sequence Data Set (KSDS) Entry Sequence Data Set (ESDS) Relative Record Data Set (RRDS) Linear Data Set (LDS) A special system utility (IDCAMS) is used to define, delete, rename, and copy VSAM data sets. 13

How Data is Stored and Managed by VSAM 14

Data Set Names - (DSN) Each cataloged data set must have an 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 a dot. 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: ZIBM000.JCL HLQ: ZIBM000 2 qualifiers 15

Data Set Names - Partitioned Data Set Member Names Member name of partitioned data set (PDS) 8 characters long First byte: uppercase alphabetical (A-Z) or special (@ # $) 7 remaining: alphabetical, special, numeric (0-9) 16

Data Set Names 17

Data Set Names 18

Data Set Names 19

Data Set Names - Shift Right (F11) 20

Data Set Names - Information 21

Data Set Names - Information 22

Data Set Names Edit a Partitioned Data Set 23

Data Set Names PDS members 24

Data Set Names Edit mode 25

Data Set Names Disk Volume View 26

Data Set Names Disk Volume View 27

Data Set Names DSLIST Panel 28

Data Set Names DSLIST output Observe *VSAM* in Volume column 29

Data Set Names LIST Catalog Entry (LISTC ENT) 30

Data Set Names VSAM Information 31

Data Set Names VSAM Information 32

Data Set Names DSLIST wildcards 33

Data Set Names View mode 34

Data Set Names View mode 35

Data Set Names DSLIST wildcard help (F1) 36

Catalog and VTOC 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. A catalog is a data set used to store location information about other data sets. VTOC: Lists the data sets on a volume Lists the free space on the volume. *Note: Another special data set (VSAM Volume Data Set VVDS) is stored on a disk volume which contains VSAM data sets. The VVDS entries include VSAM Volume Records (VVRs) to relate elements of a VSAM data set name. 37

VTOC (Volume Table of Contents) LA B E L ( v o ls e r ) VTO C M Y.D A T A t r acks t r acks Y O U R.D A T A f r ee space t r acks E xt ent s 38

Catalog - What is a z/os Catalog? A catalog is a VSAM data set with information about other data sets. Catalog records associate a data set name with disk or tape volume. 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. An alias entry is defined in the master catalog to direct the master catalog to look into a specifically related user catalog for the all data sets names beginning with that alias (aka HLQ) as the first node of the data set name. 39

Catalog Structure 40

Catalog Structure 41

Catalog Structure 42

Catalog Structure List Catalog Information 43

Catalog Structure List Catalog Information 44

Catalog Structure List Catalog Information 45

Catalog Structure List Catalog Information 46

Catalog Structure Define a User Catalog 47

Catalog Structure Define an Alias in Master Catalog 48

Catalog Structure ISPF Panel to Allocate Data Set 49

Catalog Structure Allocate New Data Set 50

Catalog Structure Allocate New Data Set 51

Catalog Structure Allocate New Data Set 52

Catalog Structure 53

Catalog Structure 54

Catalog Structure 55

Catalog Structure 56

Catalog Structure 57

Catalog Structure 58

Catalog Structure 59

Catalog Structure 60

Catalog Structure Using Ditto to View VTOC 61

Catalog Structure Using Ditto to View VTOC 62

Catalog Structure Using Ditto to View VTOC 63

Catalog Structure Using Ditto to View VTOC 64

Catalog Structure Using Ditto to View VTOC 65

Catalog Structure Using ISPF Data Set List Utility 66

Catalog Structure Using ISPF Data Set Utility 67

Data Facility / Storage Management Subsystem (SMS) 68

Data Facility / Storage Management Subsystem (SMS) 69

DFSMSdfp Automatic Class Selection (ACS) Routine Automatic Class Selection (ACS) Routine reads submitted JCL, modifies JCL based on coded criteria, then returns control to z/os for allocation processing. ACS Routine chronological processing Data Class > Storage Class > Mgmt Class > Assign Storage Group (device media) 1) 2) 3) 4) 70 Data Class Storage Class Management Class Storage Group assigned when coded criteria is matched assigned when coded criteria is matched assigned when coded criteria is matched ACS routine directs allocation to use specific device resources based on assigned 'Class' criteria.

DFSMSdfp Automatic Class Selection (ACS) Routine What JCL DD operands influence the ACS routine? JCL DD statement coded DATACLAS=, MGTMCLAS=, STORCLAS= The values would be created by DASD administrator JCL DD statement DSN= and DISP= where a data set name standard is established, then ACS routine assigns JCL DD operands for new data set allocations based upon DSN=value 71

DFSMSdfp Automatic Class Selection (ACS) Routine Storage Class The storage class contains the attributes that identify a storage service level to be used by SMS for storage of the data set. It replaces the storage attributes that are specified on the UNIT and VOLUME parameters for non-sms-managed data sets. Example Storage Class ACS Routine code syntax: WHEN (&STORCLAS = value') SET &STORGRP = value' 72

z/os Data Facility Using ISMF ** TSO DGTFMD01 73

z/os Data Facility Using ISMF 74

Key Manuals for z/os Data Sets, Catalogs & VTOCs DFSMS Bookshelf Introduction Using Data Sets Implementing System Managed Storage Managing Catalogs DFSMSdfp Utilities DFSMSdfp Advanced Services 75

Unit summary Having completed this unit, you should be able to: Describe data set naming rules Describe a partitioned data set Describe a sequential data set Describe a VSAM data set Describe a data set extent Describe role of the system catalog and user catalogs Describe role of VTOC Describe z/os based Unix filesystems 76