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 VSAM KSDS
//KSDS JOB ‘XXXXXX’,’YYY’,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER –
( –
NAME(XXXXXX.YYY.KSDS) –
TRACKS(4,2) –
CONTROLINTERVALSIZE(4096) –
RECORDSIZE(80,80) –
FREESPACE(10,20) –
KEYS(10,1) –
) –
DATA –
( –
NAME(XXXXXX.YYY.KSDS.DATA) –
) –
INDEX –
( –
NAME(XXXXXX.YYY.KSDS.INDEX) –
CONTROLINTERVALSIZE(2048) –
)
/*
//
——————————————————————————————————–
If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
——————————————————————————————————–
You may also like to look at: