r---------T----------T-------------------------------------------------,
I Name I
operation
I
Operand
I
~---------+----------+-------------------------------------------------~
I I
INDEX
I
GENINDX
BUILD
GENERATION
I
I I
Check
Exceptional
Returns
INDEX
I
I
GENINDX
I
CAMLST
I BLDG,DLEVEL,VOLNUM"DELETE,,4 I
I
DLEVEL
I
DC
I
CLsrA.B.C.D'
BLANK
DELIMITER I
I
VOLNUM
I
DC
I
CL6'000045'
I
L
_________
~
__________
~
_________________________________________________
J
The
INDEX
macro-instruction
points
to
the
CAMLST
macro-instruction.
BLDG,
the
first
operand
of
CAMLST,
specifies
that
a
generation
index
be
built.
DLEVEL,
the
second
operand,
specifies
the
main
storage
location
of
an
area
into
which
you
have
placed
the
fully
qualified
name
of
a
generation
index.
VOLNUM,
the
third
operand,
specifies
the
main
storage
location
of
an
area
into
which
you
have
placed
the
6-byte
serial
number
of
the
volume
on
which
the
generation
index
is
to
be
built.
DELETE,
the
fifth
operand,
specifies
that
all
data
sets
dropped
from
the
generation
data
group
are
to
be
deleted.
The
final
operand,
4,
specifies
the
number
of
data
sets
that
are
to
be
maintained
in
the
generation
data
group.
Note:
A
model
DSCB
for
the
generation
data
set
must
be
placed
on
the
control
volume
containing
the
index
prior
to
creation
of
the
data
set.
The
system
will
take
information
from
the
model
DSCB
when
you
create
a
data
set
for
the
group.
A
model
DSCB
is
created
by
specifying,
in
a
DD
statement:
the
name
of
the
data
set;
zero
space
allocation,
i.e.,
SPACE=(TRK,
(0ยป;
and
appropriate
DCB=parameters.
HOW
TO
DELETE
AN
INDEX
You
can
delete
any
number
of
index
levels
from
an
existing
index
structure.
Each
level
of
the
index
is
deleted
separately.
You
delete
each
level
of
the
index
by
using
the
INDEX
and
CAMLST
macro-
instructions.
If
an
index
level
either
has
an
alias,
or
has
other
index
levels
or
data
sets
cataloged
under
it,
it
cannot
be
deleted.
Example:
In
the
following
example,
index
level
C
is
deleted
from
index
structure
A.B.C.
The
search
for
the
index
level
starts
on
the
system
residence
volume.
r---------T----------T-------------------------------------------------,
I Name I
Operation
I
Operand
I
~---------+----------+-------------------------------------------------~
I I
INDEX
I
DELETL
DELETE
INDEX
LEVEL
C
FROM
I
I I
Check
Exceptional
Returns
INDEX
STRUCTURE
A.B.C
I
I
DELETE
I
CAMLST
I DLTX,LEVELC I
I
LEVELC
I
DC
I
CL6'A.B.C'
ONE
BLANK
FOR
DELIMITER I
L
_________
~
__________
~
_________________________________________________
J
The
INDEX
macro-instruction
points
to
the
CAMLST
macro-instruction.
DLTX,
the
first
operand
of
CAMLST,
specifies
that
an
index
level
be
deleted.
LEVELC,
the
second
operand,
specifies
the
main
storage
location
of
an
area
into
which
you
have
placed
the
fully
qualified
name
of
the
index
structure
whose
lowest
level
is
to
be
deleted.
HOW
TO
ASSIGN
AN
ALIAS
You
assign
an
alias
to
an
index
level
by
using
the
INDEX
and
CAMLST
macro-instructions.
An
alias
can
be
ass~gnea
only
to
a
high
level
index;
e.g.,
index
A
of
index
structure
A.B.C
can
have
an
alias,
but
14