Sort, merge and Report Writer

SORT with USING and GIVING, then with an input and an output procedure, and the RELEASE and RETURN that feed it. MERGE and sorting an indexed file follow. The last two lessons are the Report Writer and the breaks and limits of it that this compiler builds.

9.1 SORT with USING and GIVING SORT ... ON ASCENDING KEY, USING, GIVING, and a DESCENDING key beside it Open 9.2 SORT with procedures INPUT PROCEDURE, OUTPUT PROCEDURE, and the SELECT of the work file Open 9.3 RELEASE and RETURN a record released into the sort, a record returned from it, and the counters Open 9.4 MERGE two sorted files, MERGE ... USING, GIVING, and the order the output keeps Open 9.5 Sorting an indexed file read, sort, rewrite, and the status of every step Open 9.6 Report Writer: the basics REPORT SECTION, RD, PAGE, TYPE DETAIL, GENERATE and the report it prints Open 9.7 Report Writer: breaks and limits CONTROL, TYPE CONTROL HEADING, a break footer, and what 3.2 does not support Open

Lessons