Printing a List while Creating it 

When you print a list while creating it, you receive best print output, since the system formats the list according to the requirements of the printer. The system sets list width and page length according to the print format. This prevents lines from being wider than the print format in use. Page breaks occur at the end of a physical print page.

The program must know the print format before it starts creating the list. The print format is part of the print parameters. Print parameters are set either interactively by the user or from within the program.

Print Parameters

You can print a list while creating it in one of the following ways:

Execute and Print

Printing from Within a Program

Printing Lists of Called Executable Programs

When printing a list while creating it, you can manipulate the print format:

Print Control

 

When printing a list while creating it, the system sends each completed page to the spool system and then deletes it. The length of a printed list, therefore, is restricted only by the capacity of the spool system. In contrast to lists for display, the system does not store list levels when printing. Since an entire list in printing never exists, you cannot refer to the contents of previous pages.