Previous topic |
Next topic |
Contents |
Glossary |
Contact z/OS |
PDF
IDCAMS: Use access method services for catalogs Data and storage management on z/OS |
|
Although it provides other functions, IDCAMS, which is the program name for access method services, is used primarily to define and manage VSAM data sets and integrated catalog facility catalogs. An access method defines the technique that is used to store and retrieve data. Access methods have their own data set structures to organize data, system-provided programs (or macros) to define data sets, and utility programs to process data sets. VSAM (Virtual Sequential Access Method) is an access method used for more complex applications. VSAM arranges records by an index key, relative record number, or relative byte addressing. Some users pronounce the name of this program as "id-cams" (two syllables) while others say "I-D-cams" (three syllables). A typical example of a simple use of IDCAMS is as follows:
//VDFNDEL JOB 1,LINDAJO,MSGCLASS=X //STEP1 EXEC PGM=IDCAMS //SYSPRINT DD * //DATAIN DD DISP=OLD,DSN=LINDA.SORTOUT //SYSIN DD * DEFINE CLUSTER (NAME (LINDA.DATA.VSAM) - VOLUMES(WORK02) CYLINDERS(1 1) - RECORDSIZE (72 100) KEYS(9 8) INDEXED) REPRO INFILE(DATAIN) OUTDATASET(LINDA.DATA.VSAM) ELIMIT(200) /* //STEP2 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE LINDA.DATA.VSAM CLUSTER /* This sample job, named VDFNDEL, consists of two steps: One to define a
VSAM data set; the other to delete it. The first step, STEP1 performs two
functions:
Many of IDCAMS functions can be entered as TSO commands. For example, DEFINE CLUSTER can be used as a TSO command. However, using IDCAMS in this manner is generally not recommended because these commands can be complex and the errors encountered can be complex. Entering the IDCAMS commands through a batch job allows the commands and resulting messages to be reviewed as often as necessary by using SDSF to view the output. |
Copyright IBM Corporation 1990, 2010
|