The following example illustrates a REXX exit that will count the number of records that are passed to the exit:Figure 1. Sample REXX Exit Code