The SPLJOB.dat file includes seven keyed indexes. The MVSSPLPB interface uses these indexes to retrieve records in a particular sequence. To select an index, move its corresponding constant to the KEY-ID field; to illustrate this point, the following partial listing from mfpubspl.cpy shows the available indexes:
...
03 ()-IDX-DATA.
* Available indices are:
05 ()-JOB-IDX-ID PIC X.
* JES job number
88 ()-IDX-IS-JOB-NBR VALUE '0'.
* job status, name, number
88 ()-IDX-IS-STATUS-NAME VALUE '1'.
* job status, userid, number
88 ()-IDX-IS-STATUS-USER VALUE '2'.
* job status, number
88 ()-IDX-IS-STATUS-NBR VALUE '3'.
* job status, submitted date/time, number
88 ()-IDX-IS-STATUS-SUB VALUE '4'.
* job status, class, priority, submitted date/time,
* job number
88 ()-IDX-IS-STATUS-CLS-PRTY VALUE '5'.
* job status, completion code, number
88 ()-IDX-IS-STATUS-COND VALUE '6'.
...