Certain general considerations apply to the coding of printer files.
Externally described print files should normally be used in preference to program-described files, because:
The only circumstances under which it might be worth considering using a program-described print file are if:
Sometimes, a program need only create a report in particular circumstances. For example, a file maintenance program might need to produce a report only if a change to the database was made. In such cases, you should make the opening of the print file explicit (use the RPG III OPEN operation code), so that unnecessary empty spool files are not created.

This example shows the standard layout for all source.

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |