Previous Topic: Step 5 - Select Tapes Due To ExpireNext Topic: Step 7 - Sort the Intermediate File


Step 6 - Add the END STEP Statement

The WRITE statement shown in Step 5 marks the end of a processing step. A processing step ends whenever a control statement causes GRW to produce an intermediate output file. Three control statements do this: WRITE, SUMMARIZE, and SORT.

Because the WRITE statement is not executed for every input file record, you must tell GRW explicitly that the step has completed. To assure that GRW functions occur in the proper order, add this statement to the control file:

END STEP.