I have a program-described order entry file with three records types, H, D and T. This file is sorted daily, as show below. 8-12 is the order number.
Somehow, the records for an order lost their H/D/T sequence. There is an alternate index based on order number. When a chain is made using this file, the program expects to receive the H record for that order. But the record returned is a D record, because its RRN is less than that of the H record.
I would like to know how this happened, but I am most interested in learning how to get the sequence back to where it should be.
Thanks in advance,
Leo
Code:
// LOAD #GSORT // FILE NAME-INPUT,LABEL-OEMST,DISP-SHR // FILE NAME-OUTPUT,LABEL-OESRT,RECORDS-99999,RETAIN-J,EXTEND-10,DFILE-YES // RUN HSORTRE 14D 3X 500 I FNC 8 12 FDC 1 250 FDC 251 500 // END
I would like to know how this happened, but I am most interested in learning how to get the sequence back to where it should be.
Thanks in advance,
Leo
Comment