1 working with data sets stephen s. linkin houston community college © hccs and ibm 2008 ©hccs...
TRANSCRIPT
![Page 1: 1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/1.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/2.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/3.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/4.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/5.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/6.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/7.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/8.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/9.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/10.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/11.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/12.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/13.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/14.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/15.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/16.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/17.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/18.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/19.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/20.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/21.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/22.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/23.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/24.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/25.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/26.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/27.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/28.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/29.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/30.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/31.jpg)
©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](https://reader036.vdocuments.mx/reader036/viewer/2022062422/56649f355503460f94c53152/html5/thumbnails/32.jpg)
©HCCS & IBM® 2008 Stephen Linkin 32
Summary
Read The Redbook