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 Alternate Index
//AIX JOB ‘XXXXXX’,’YYY’,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE AIX –
( –
NAME(XXXXXX.YYY.AIX) –
RELATE(XXXXXX.YYY.KSDS) –
TRACKS(4,2) –
NONUNIQUEKEY –
UPGRADE –
RECORDSIZE(80,80) –
FREESPACE(10,20) –
KEYS(5,11) –
) –
DATA –
( –
NAME(XXXXXX.YYY.AIX.DATA) –
) –
INDEX –
( –
NAME(XXXXXX.YYY.AIX.INDEX) –
)
/*
//
——————————————————————————————————–
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: