1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS &...

32
1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin

Transcript of 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS &...

Page 1: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 1

Working With Data Sets

Stephen S. LinkinHouston Community College

© HCCS and IBM 2008

Page 2: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 2

What Is A Data Set?

The Basis For Everything Processed Records Fields

Page 3: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 3

What Is A Data Set?

Organization Sequential Partitioned VSAM

Page 4: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 4

Where Are Data Sets Stored?

Storage Drives and Media Disk (DASD) Tape (Sequential)

Page 5: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 5

What Are Access Methods?

QSAM Queued Sequential Access Method

BSAM Basic Sequential Access Method

BDAM Basic Direct Access Method

BPAM Basic Partitioned Access Method

VSAM Virtual Sequential Access Method

Page 6: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 6

DASD Terminology For UNIX And PC Users Tracks Cylinders

How Are DASD Volumes Used?

Page 7: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 7

How Are DASD Volumes Used?

What Are DASD Labels?

Page 8: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 8

Allocating A Data Set

Set Aside Space Access method services TSO ALLOCATE ISPF menus JCL

Establish A Logical Link

Page 9: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 9

How Data Sets Are Named

Unique Segmented Characters Size Conventions

Page 10: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 10

Allocating Space On DASD Volumes Through JCL

What Will We Do?

Page 11: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 11

Allocating Space On DASD Volumes Through JCL

What will we do? Logical Records And Blocks Data Set Extents

Page 12: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 12

Data Set Record Formats

F – Fixed FB - Fixed

Blocked V – Variable VB - Variable

Blocked U - Undefined

Page 13: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 13

Data Set Record Formats

Blocking BLKSIZE LRECL RECFM

Page 14: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 14

Data Set Record Formats

Blocking RECFM=FB LRECL=25

RECFM=VB LRECL=25

USA CA SAN JOSE

USA CA SAN JOSE

H 0000

H 0011

Page 15: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 15

Types Of Data Sets

What Is A Sequential Data Set? DSORG=PS

What Is A PDS?

Page 16: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 16

Types Of Data Sets

What Is A Sequential Data Set? DSORG=PS

What Is A PDS? DSORG=PO

Why Is A PDS Structured Like That? Advantages Of A PDS

Page 17: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 17

Types Of Data Sets

What Is A Sequential Data Set? DSORG=PS

What Is A PDS? DSORG=PO

Why Is A PDS Structured Like That? Advantages Of A PDS Disadvantages Of A PDS

Page 18: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 18

Types Of Data Sets

What Is A PDSE?

Page 19: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 19

Types Of Data Sets

What Is A PDSE? PDS Versus PDSE

Page 20: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 20

Types Of Data Sets

What Is A PDSE? PDS Versus PDSE

When A Data Set Runs Out Of Space

Page 21: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 21

What Is VSAM?

Data Set Type Access Method

key-sequenced entry-sequenced linear relative record

Page 22: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 22

What Is VSAM?

Control Interval Code Example

Page 23: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 23

What Is A VTOC?

Catalogs And VTOC’s

Page 24: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 24

What Is A VTOC? What Is A Catalog?

Master Catalogs And User Catalogs

Catalogs And VTOC’s

Page 25: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 25

What Is A VTOC? What Is A Catalog?

Master Catalogs And User Catalogs

Using An Alternate Master Catalog

Catalogs And VTOC’s

If IBMUSER.A1 is cataloged, then the JCL statement to allocate it to the job would be: //INPUT DD DSN=IBMUSER.A1,DISP=SHRIf it is not cataloged, the JCL statement to allocate it to a job is: //INPUT DD DSN=IBMUSER.A1,DISP=SHR,VOL=SER=WRK001,UNIT=3390

Page 26: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 26

What Is A VTOC? What Is A Catalog?

Master Catalogs And User Catalogs

Using An Alternate Master Catalog

What Is A Generation Data Group?

Catalogs And VTOC’s

Page 27: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 27

Role of DFSMS in managing space

Manual Or Automated Processes DFSMS Automates Data Set Storage Data Management Tasks

Page 28: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 28

Role of DFSMS in managing space

Allocates Space On DASD volumes. Automatically Retrieve By Name. Mount Magnetic Tape. Set Logical Connections Between

Application Programs And Their Media. Control Data Access. Transfer Data Between Applications And

Media

Page 29: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 29

z/OS UNIX File Systems

UNIX File System Is: Hierarchical And Byte-Oriented Paths and Path Names

/dir1/dir2/dir3/MyFile

Page 30: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 30

z/OS UNIX File Systems

UNIX File System Is: Hierarchical And Byte-Oriented Paths and Path Names Case Sensitive

z/OS Data Sets Vs File System Files

Page 31: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 31

Working With A zFS File System

DFS™ - Distributed File Service API - Application Program Interface SMB - Server Message Block

Page 32: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.

©HCCS & IBM® 2008 Stephen Linkin 32

Summary

Read The Redbook