Example: The central office of a commercial bank requires that each branch present its masterfile at the end of every month in the format outlined in the figure Desired Input Record Layout. Branch A, however, has formatted its masterfile records as outlined in the figure Non-compliant Input Record Layout.
The figure Post-OUTREC Record Layout shows the effect of OUTREC processing on the output record.
Explanation: After the records are copied, OUTREC specifies two types of reformatting: (1) repositioning data fields and (2) inserting blanks between fields. As shown in the figure Post-OUTREC Record Layout, two fields have been repositioned: the Account Type field now begins on the twenty-first byte as opposed to the fifth byte, and the Account Number field begins on the fifth byte rather than on the eighth. Also, blanks have been inserted using the nX entry to specify the number (n) of blanks. Six blanks have been inserted after the Account Number field and a single blank after the Account Type field. Since the Balance field and Interest field are contiguous, they are treated as a single field in this application.