PRTCOUNT

Figure 1. Syntax

1 PRTCOUNT()

Can be used in FASTREXX condition expressions.

Returns the current count of records printed. The count is incremented for each record printed by the DSP function or Print Utility (option 3.2), and for each invocation of the PRINT function.

Example

Print the first 10 input records.
If PRTCOUNT() < 10 Then PRINT(inrec,'CHAR')