IDCAMS is the Access Method Services program. IDCAMS program is useful in creating
VSAM, GDG and PS file by supplying AMS commands thru SYSIN. The below examples are
very useful in coding the requirements for VSAM and GDG users.
Defining GDG
//GDG JOB ‘XXXXXX’,’YYY’,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG –
( –
NAME(XXXXXX.YYY.GDG) –
LIMIT(10) –
NOEMPTY – <= NOEMPTY <-> EMPTY
SCRATCH – <= SCRATCH <-> NOSCRATCH
)
/*
//