Professional Documents
Culture Documents
VSAM - Day 02
VSAM - Day 02
VSAM - Day 02
UNIT Topics:
Control Area
KSDS
Control Area
05 08 09 10
12 14 15 20
21 22 24 25
29 30 35 36
Control Area
sequence set
Index
Component Sequence Set 1 Sequence Set 2
Sequence
...
Key Ptr Key Ptr Key Ptr Key Ptr Key Ptr Key Ptr
Set
...
Data CI 1 CI 2 CI 3 CI 4 CI 5 CI 6
Control
Component Areas
Control Area CI and CA Split
CI split happens while
Adding new records or extending an old
record
And not enough room in the CI to complete
the operation
CI split may trigger a CA split
Splits generally degrades performance
Specify free space to reduce CI & CA splits
Before control interval split
Sequence ...
Set I 0 M 100
Record
C
0
Data Record A Record B Record F Record G U CF
Component S
100
Record J Record K FSPC U CF
S
200
FSPC U CF
S
After control interval split
Sequence ...
Set E 0 I 200 M 100
0
Data Record A Record B Record C FSPC U CF
Component S
100
Record J Record K FSPC U CF
200
Record F Record G FSPC U CF
S
Control Area
VSAM BUFFERS
DATA BUFFERS
CI
CI
VIRTUAL
DASD
STORAGE
CI
INDEX BUFFER
Holds control interval either before or after
processing
Two types
Index
Data
Control Area
CI SIZE
Tracks(3,3),Cylinders(1,1)
ControlIntervalSize(number-of-bytes)
Access Method Services
Initial Loading
RDFs
RRDS
Variable-Length RRDS
A variable-length RRDS
contains records that vary
in size.
Like a fixed-length RRDS,
Variable-Length
each record of a variable- Relative Record Data Set
length RRDS has a unique
Relative Record Number
(RRN).
Each record is stored and
retrieved using this 332 380 380 380
number.
Unlike a fixed-length
RRDS, a variable-length
RRDS does not have slots.
Continued…
RRDS
Control Interval Format for a Variable-Length RRDS
3 3 3 1 2
RRN RRN RRN RRN RRN Free 8
3 3 8 3 2
1 2 3 4 5 Space 0
2 0 2 8
4
fixed-length RRDS.
Concepts
RRDS
Updating Records
Syntax.
Repro infile(ddname of inputFile)
outfile(ddname of outputfile)
or
Repro indataset(inputdatasetname)
outdataset(outputdatasetname)