Space announcement

   

This space provides the same content as before, but the organization of the home page has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

Example 7: Building a nonpartitioned index

Example 7 uses the keys that were unloaded and sorted in Example 6 to build an index.

See Example 6: Extracting nonpartitioned index keys.

JCL building an index with sorted unloaded keys

//AFREX07 JOB (0000),'EXAMPLE 7', 
//        CLASS=Q,NOTIFY=&SYSUID 
//        MSGCLASS=X 
//* 
//RECOVER EXEC PGM=AFRMAIN,REGION=0M, 
//             PARM='DGE,EXAMPLE07,NEW/RESTART,MSGLEVEL(2)' 
//STEPLIB  DD DISP=SHR,DSN=product.libraries
//          DD DISP=SHR,DSN=DB2.DSNEXIT
//          DD DISP=SHR,DSN=DB2.DSNLOAD
//SKEY1     DD DISP=SHR,DSN=RDASTC.BMCDBJ.PARTS12.SUNKEY1 
//SKEY2     DD DISP=SHR,DSN=RDASTC.BMCDBJ.PARTS34.SUNKEY2 
//SKEY3     DD DISP=SHR,DSN=RDASTC.BMCDBJ.PARTS56.SUNKEY3 
//SYSIN     DD * 
  RECOVER BUILDINDEX (RDASTC.BMCIXJ2) 
/* 
//

Was this page helpful? Yes No Submitting... Thank you

Comments