Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
Hi,
What's the BLDINDEX usage? In the OUTFILE parm should we put AIX or the PATH? I tried running with both and job went successfully for both the cases. Is there any difference in usage or it doesn't matter whether we use .PATH or the .AIX ?
Thanks in advance.
Code:
//S0 EXEC PGM=IDCAMS,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (<INFILE>.AIX) ALTERNATEINDEX PURGE
IF MAXCC > 8 THEN SET MAXCC = 16
ELSE SET MAXCC = 0
DEFINE ALTERNATEINDEX ( -
NAME (<INFILE>.AIX) -
RELATE (<Infile>.KSDS) -
UPGRADE ) -
DATA ( -
NAME (<INFILE>.AIX.D) -
MODEL (<Model>.AIX.D))-
INDEX ( -
NAME (<INFILE>.AIX.I))
IF MAXCC > 8 THEN SET MAXCC = 16
ELSE SET MAXCC = 0
DEFINE PATH ( -
NAME (<INFILE>.PATH) -
PATHENTRY (<INFILE>.AIX)-
UPDATE )
/*
//S1 EXEC PGM=IDCAMS,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//INDD DD DSN=<Infile>.KSDS,DISP=SHR
//OUTDD DD DSN=<Infile>.PATH,DISP=SHR
//SYSIN DD *
BLDINDEX INFILE(INDD) OUTFILE(OUTDD)
/*
INFILE(ddname)|INDATASET(entryname)
names the DD statement or data set that identifies the base cluster or a path that points to the base cluster.
INFILE(ddname)
is the DD statement that identifies the base cluster or a path that points to the base cluster. You must define the base cluster in the same catalog as the alternate index, and it must contain at least one data record.
Abbreviation: IFILE
INDATASET(entryname)
names the data set that identifies the base cluster or a path that points to the base cluster. You must define the base cluster in the same catalog as the alternate index, and it must contain at least one data record.
When you use INDATASET to dynamically allocate the base-cluster volume, make sure the base-cluster volume is mounted as permanently resident or reserved.
Abbreviation: IDS
OUTFILE(ddname)|OUTDATASET(entryname)
names the DD statement or data set that identifies the alternate index or a path that points to the alternate index.