Home › Mainframe Tutorial › VSAM and IDCAMS
VSAM and IDCAMS
Indexed files and the utility that manages them.
VSAM datasets can be read by key, in order or by position. The IDCAMS utility defines, copies, prints and deletes them. Its commands, such as DEFINE CLUSTER and REPRO, are written in SYSIN.
Example code
//VSAMJOB JOB (ACCT),'IDCAMS',CLASS=A,MSGCLASS=X
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC=0
/*