Escolar Documentos
Profissional Documentos
Cultura Documentos
DAY 4
10/15/08 1
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(virtual storage access method)
• These are the logical dataset for storing records and are known
as clusters.
• The term cluster is used because there are two components for
many VSAM datasets that are :
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(virtual storage access method)
VSAM is a
10/15/08 3
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(virtual storage access method)
TYPES OF VSAM Data sets.
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(virtual storage access method)
Key Sequence Data sets.
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(virtual storage access method)
10/15/08 6
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
Relative Record Data sets.
( RRDS )
10/15/08 7
ER/CORP/CRS/OS02/003-4
VSAM DATASETS
(KSDS - Key Sequenced Dataset)
• Vsam stores records in the data component in units called
control intervals(CI)
Unused Space
Control Field
CISZ
( CONTROL INTERVAL SIZE)
10/15/08 8
ER/CORP/CRS/OS02/003-4
VSAM UTILITY
IDCAMS
( IDC Access Method Services )
• Define
• Repro ( Copy )
• List
• Print
• Verify
• Delete
10/15/08 9
ER/CORP/CRS/OS02/003-4
(KSDS - Key Sequenced Dataset)
DEFINE
000100 //INF6244A JOB CLASS=A,NOTIFY=INF6244
000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DEFINE CLUSTER(NAME(ER24172.VSAM.KSDS1) -
000600 INDEXED -
000700 VOLUME(SMS008) -
001000 KEYS(4 0) -
001010 CISZ(4096) -
10/15/08
10
001100 FREESPACE(3 3))
ER/CORP/CRS/OS02/003-4 -
(KSDS - Key Sequenced Dataset)
(using repro)
• REPRO is used to copy VSAM and non VSAM datasets.
10/15/08
12
ER/CORP/CRS/OS02/003-4
(KSDS - Key Sequenced Dataset)
(delete)
10/15/08
13
ER/CORP/CRS/OS02/003-4
Generation Data Groups (GDGs)
Processing of GDG
1) Adding a new generation
2) Retaining the previous generation
3) Discarding the oldest generation
10/15/08
14
ER/CORP/CRS/OS02/003-4
Creating Generation Data Group
10/15/08
15
ER/CORP/CRS/OS02/003-4
Create GDG base entry
Create an index for the GDG
10/15/08
16
ER/CORP/CRS/OS02/003-4
Creating a model dataset
• For Non SMS managed datasets, define a model
dataset (DSCB) such that new GDG created will
use prespecified parameters
• DSCB supplies the DCB &EXPDT subparameters
for the GDG
• The model dataset must be cataloged
• It is linked to the GDG via a “DCB=model name”
on creating new GDS
10/15/08
17
ER/CORP/CRS/OS02/003-4
Create DSCB
10/15/08
18
ER/CORP/CRS/OS02/003-4
Create GDS
(generation data set)
10/15/08
19
ER/CORP/CRS/OS02/003-4
Deleting GDG Catalog Entries
•Delete a model
000100 //INF62441 JOB (AMLAN),NOTIFY=INF6244,CLASS=A
000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DELETE INF6244.PAYROLL PURGE
000600 /*
•Delete an allocated GDG and deletes all GDS’s
000100 //INF62441 JOB (AMLAN),NOTIFY=INF6244,CLASS=A
000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DELETE INF6244.PAYROLL.VERSION PURGE FORCE
000600 /*
10/15/08
20
ER/CORP/CRS/OS02/003-4
Listing of GDG Catalog Information
10/15/08
21
ER/CORP/CRS/OS02/003-4
SMS
(Storage Management Subsystem)
• SMS is an optional feature of MVS.
• It is a tool that is used to improve the management of available
disk space.
• Data sets created under SMS are known as SMS managed datasets .
• PDS are known as PDSE when converted to SMS managed datasets
can be done by IEBCOPY.
• SMS allows the installation to benefit from the data class, management
class, and storage class constructs without changing existing JCL.
10/15/08
23
ER/CORP/CRS/OS02/003-4
That is the end of JCL course
Thank you
10/15/08
24
ER/CORP/CRS/OS02/003-4