Examples of implicit task assignment
//SORTWK01 DD SPACE=(CYL,(60,20)),UNIT=3380
//SORTWK02 DD SPACE=(CYL,(60,20)),UNIT=3380
//SORTWK03 DD SPACE=(CYL,(60,20)),UNIT=3380
//PSRTWK01 DD SPACE=(TRK,(10,10)),UNIT=3380
//PSRTWK02 DD SPACE=(TRK,(10,10)),UNIT=3380
//PSRTWK03 DD SPACE=(TRK,(10,10)),UNIT=3380
//RVPSYSIN DD *
GLBL ...
REC DBD(DBD6) BLDINDEX(Y) ...
//SORTWK02 DD SPACE=(CYL,(60,20)),UNIT=3380
//SORTWK03 DD SPACE=(CYL,(60,20)),UNIT=3380
//PSRTWK01 DD SPACE=(TRK,(10,10)),UNIT=3380
//PSRTWK02 DD SPACE=(TRK,(10,10)),UNIT=3380
//PSRTWK03 DD SPACE=(TRK,(10,10)),UNIT=3380
//RVPSYSIN DD *
GLBL ...
REC DBD(DBD6) BLDINDEX(Y) ...
- The default sort task SORT sorts log records used to recover HIDAM database DBD6. After the recovery task completes, secondary index records that are created by the Index Rebuild function are also sorted by sort task SORT.
- The default sort task PSRT sorts log records that are created by the Index Rebuild function and used to rebuild the primary index for database DBD6.
The following example shows the implicit assignment of the sort task by omitting both the SORT and PSORT keywords from the REC control statement and specifying SORT control statements using default sort tasks SORT and PSRT:
//RVPSYSIN DD *
GLBL ...
SORT SORT(SORT) SORTWK(3,3380,C,60,20) ...
SORT SORT(PSRT) SORTWK(3,3380,T,10,10) ...
REC DBD(DBD6) BLDINDEX(Y) ...
GLBL ...
SORT SORT(SORT) SORTWK(3,3380,C,60,20) ...
SORT SORT(PSRT) SORTWK(3,3380,T,10,10) ...
REC DBD(DBD6) BLDINDEX(Y) ...
- Default sort task SORT sorts log records used to recover HIDAM database DBD6. After the recovery task completes, secondary index records that are created by the Index Rebuild function are also sorted by sort task SORT.
- Default sort task PSRT sorts log records that are created by the Index Rebuild function and used to rebuild the primary index for database DBD6.
The following example shows the implicit assignment of the sort task by omitting the SORT or PSORT keyword on the AREC control statement and specifying the KEYLEN keyword on the SORT control statement:
//RVPSYSIN DD *
GLBL ... SORT SORT(SRT4) SORTWK(4,SYSDA,C,50,5) KEYLEN(4) ...
SORT SORT(SRT5) SORTWK(6,3390,C,30,10) KEYLEN(14) ...
SORT SORT(SRT6) SORTWK(6,3380,C,20,10) KEYLEN(20) ...
AREC DBD(DBD4) DDN(ESDS1) ...
AREC DBD(DBD5) DDN(ESDS2) ...
AREC DBD(SNDX1) DDN(KSDS1) ...
AREC DBD(SNDX2) DDN(KSDS2) ...
AREC DBD(SNDX3) DDN(KSDS3) ...
GLBL ... SORT SORT(SRT4) SORTWK(4,SYSDA,C,50,5) KEYLEN(4) ...
SORT SORT(SRT5) SORTWK(6,3390,C,30,10) KEYLEN(14) ...
SORT SORT(SRT6) SORTWK(6,3380,C,20,10) KEYLEN(20) ...
AREC DBD(DBD4) DDN(ESDS1) ...
AREC DBD(DBD5) DDN(ESDS2) ...
AREC DBD(SNDX1) DDN(KSDS1) ...
AREC DBD(SNDX2) DDN(KSDS2) ...
AREC DBD(SNDX3) DDN(KSDS3) ...
- Sort task SRT4 sorts log records used to recover the ESDS database data sets ESDS1 and ESDS2, since the length of the sequence field for all ESDSs is always 4.
- Sort task SRT5 sorts log records used to recover the KSDS database data set KSDS1, since the length of the root segment sequence field for this KSDS is 12, and KEYLEN(14) is the optimal choice.
Sort task SRT5 also sorts log records used to recover the KSDS database data set KSDS2, since the length of the root segment sequence field for this KSDS is 14. - Sort task SRT6 sorts log records used to recover the KSDS database data set KSDS3, since the length of the root segment sequence field for this KSDS is 25. The Recovery utility automatically increases the KEYLEN value from 20 to 25.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*