How To Catalog A Data Set; How To Remove Data Set References From The Catalog - IBM System/360 System Programmer's Manual

Operating system
Hide thumbs Also See for System/360:
Table of Contents

Advertisement

location
of
an
8-byte area into which you have placed the name of the
high level index of the control volume to be disconnected.
HOW TO CATALOG A DATA SEr
You catalog a data
set
by
using
the
CATALOG
and
CAMLST
macro-
instructions.
All
inde*
leve~s
required to catalog the data set must
exist in the catalog, or an exceptional return code is set.
You must build a complete volume list in main storage.
This
volume
list
consists
of volume pointers for all volurres on which the data set
is stored.
The first two bytes of
the
list
indicate
the
number
of
volume
pointers that follow.
Each 12-byte volume pointer consists of a
4-byte device code, a 6-byte volume serial number, and a 2-byte data set
sequence number.
The sequence number is always zero
for 'direct-access
volumes.
(Device codes are contained in Appendix B of this chapter.)
Example:
In
the
following
example,
the
data
set
named
A.B.C is
cataloged under an existing index structure A.B.
The data set is stored
on two volumes.
r---------T----------T---------~---------------------------------------,
I
Name
I
Operation
I
Operand
I
~---------+----------+-------------------------------------------------~
I
I
CATA:LOG
I
ADDABC
CATALOG DATA SET A.B.C. THE
I
,
I
Check Exceptional Returns
INDEX STRUCTURE A.B. EXISTS
I
I
ADDABC
I
CAMLST
I
CAT,DSNAME"VOLUMES
I
I
DSNAME
I
DC
, CL6'A.B.C'
ONE BLANK FOR DELIMITER
I
I
VOLUMES
I
DC
I
H ,. 2'
TWO VOLUMES
I
I
,
DC
, X'30002001'
2311 DISK STORAGE
I
,
, DC
, CL6'000014'
VOLU~E
SERIAL NUMBER
,
,
I
DC
, H' 0'
DATA SET SEQUENCE NUMBER
I
,
I
DC
I
X'30002001'
2311 DISK STORAGE
I
,
, DC
I
CL6'000015'
VOLUME SERIAL NUMBER
I
,
, DC
, H'O'
SEQUENCE NUMBER
,
L _________
~
__________
~
_________________________________________________ J
The CATALOG macro-instruction points to the CAMLST macro-instruction.
CAT, the
first
operand
of
CAMLST,
specifies
that
a
data
set
be
cataloged.
DSNAME,
the
second
operand,
specifies
the main storage
location of an area into which you have placed the fully qualified
name
of the data set to be cataloged.
VOLUMES, the fourth operand, specifies
the main storage location of the volume list you have built.
HOW TO REMOVE DATA SET REFERENCES FROM THE CATALOG
You
remove data set references from the catalog by using the CATALOG
and CAMLST macro-instructions.
Example:
In the following example, references to
data
set
A.B.C
are
removed from the catalog.
r---------T-----------T-------------------------------------------------,
'Name
I
Operation, Operand
I
~---------+----------+-------------------------------------------------~
I
I
CATALOG
I
REMOVE
REMOVE REFERENCES TO DATA
I
I
I
Check Exceptional Returns
SET A.B.C FROM THE CATALOG
I
I
REMOVE
I
CAMLST
I
UNCAT,DSNAME
I
I
DSNAME
I
DC
I
CL6'A.B.C'
ONE BLANK FOR DELIMITER
I
L _________
~
___________
~
_________________________________________________ J
The CATALOG macro-instruction points to the CAMLST macro-instruction.
UNCAT,
the firs·t cperand of CAMLST, specifies that references to a data
Maintaining the Catalog and the Volurre Table of Contents
17

Advertisement

Table of Contents
loading

Table of Contents