Previous Topic: How to UseNext Topic: Sample Report:  RETIX


Example JCL

The following shows the command to rebuild the Index for the DEM area on database 1.

Note: Use the following as a guide to prepare your JCL. The JCL statements are for example only. Lowercase letters in a statement indicate a value you must supply. Code all statements to your site and installation standards.

 * $$ JOB ...           See the previous note and JCL Requirements.
 * $$ LST ...
 // JOB name
 // EXEC PROC=procname  Whether you use PROCs or LIBDEFs, see JCL Requirements.
 // ASSGN SYSnnn,device-type,VOL=volser,SHR
 // DLBL CXX,'cxx',,DA                             Directory data set
 // EXTENT SYSnnn,volser
 // DLBL IXX001,'db001.Index',9999,DA              Index Area
 // EXTENT SYSnnn,volser,1,0,rel trk/blk,number trks/blks
 // DLBL DEM001,'db001.dem',,DA                    Data area
 // EXTENT SYSnnn,volser
 // ASSGN SYS001,device-type,VOL=volser,SHR
 // ASSGN SYS002,device-type,VOL=volser,SHR
 // ASSGN SYS003,device-type,VOL=volser,SHR
 // DLBL SORTWK1
 // EXTENT SYS001,volser,,,rel-trk/blk,number trks/blks
 // DLBL SORTWK2
 // EXTENT SYS002,volser,,,rel-trk/blk,number trks/blks
 // DLBL SORTWK3
 // EXTENT SYS003,volser,,,rel-trk/blk,number trks/blks
 // EXEC DBUTLTY,SIZE=750K
          RETIX     DBID=1,AREA=DEM,OPTIMIZE=YES,SORT=1000
 /*
 /&
 * $$ EOJ