Reports Understanding reports A report can arrange and format the data depending on the instructions used and display the output on the screen, send it to a printer, or store it as a file for future use. XML output for reports For better integration with external tools based on XML standards, reports can produce XML output. The report driver The report driver retrieves data, starts the report engine and sends the data (as input records) to be formatted by the REPORT routine. The report routine The report routine implements the body of a report, with formatting instructions. Two-pass reports The report engine supports two-pass reports, to order rows automatically. Report instructions The report instruction listed in this section can appear only in control blocks of the FORMAT section of a report routine. Report operators Report operators can be used to print dynamic report information. Report aggregate functions Report aggregate functions can be used to compute data. Report engine configuration Report engine behavior can be controlled with FGLPROFILE settings.